Use dual keys by default

This commit is contained in:
idk
2020-09-03 16:19:12 -04:00
parent 22a3e9f3a7
commit ac54a46ded
2 changed files with 19 additions and 0 deletions

View File

@ -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