mirror of
https://github.com/go-i2p/goSam.git
synced 2025-07-13 14:18:25 -04:00
Use dual keys by default
This commit is contained in:
@ -39,6 +39,7 @@ type Client struct {
|
||||
|
||||
dontPublishLease bool
|
||||
encryptLease bool
|
||||
leaseSetEncType string
|
||||
|
||||
reduceIdle bool
|
||||
reduceIdleTime uint
|
||||
@ -139,6 +140,7 @@ func NewClientFromOptions(opts ...func(*Client) error) (*Client, error) {
|
||||
c.id = 0
|
||||
c.lastaddr = "invalid"
|
||||
c.destination = ""
|
||||
c.leaseSetEncType = "4,0"
|
||||
for _, o := range opts {
|
||||
if err := o(&c); err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user