just some tweaks
This commit is contained in:
@ -22,17 +22,17 @@ func Sammy(opts map[string]string) (*sam3.StreamListener, error) {
|
||||
if _, ok := opts[`sam`]; !ok {
|
||||
opts[`sam`] = "127.0.0.1:7656"
|
||||
}
|
||||
if _, ok := opts[`keypath`]; !ok {
|
||||
opts[`keypath`] = "keys.i2pkeys"
|
||||
}
|
||||
if _, ok := opts[`servertun`]; !ok {
|
||||
opts[`servertun`] = "serv" + RandStringBytes()
|
||||
}
|
||||
if _, ok := opts[`keypath`]; !ok {
|
||||
opts[`keypath`] = opts[`servertun`] + ".i2pkeys"
|
||||
}
|
||||
} else {
|
||||
opts := make(map[string]string)
|
||||
opts[`sam`] = "127.0.0.1:7656"
|
||||
opts[`keypath`] = "keys.i2pkeys"
|
||||
opts[`servertun`] = "serv" + RandStringBytes()
|
||||
opts[`keypath`] = opts[`servertun`] + ".i2pkeys"
|
||||
}
|
||||
if sam, err := sam3.NewSAM(opts[`sam`]); err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user