Moved endpoint into interface and simplified peer
This commit is contained in:
parent
fa399a91d5
commit
d10126f883
6 changed files with 101 additions and 80 deletions
|
|
@ -22,9 +22,9 @@ type Device struct {
|
|||
}
|
||||
net struct {
|
||||
mutex sync.RWMutex
|
||||
bind UDPBind // bind interface
|
||||
port uint16 // listening port
|
||||
fwmark uint32 // mark value (0 = disabled)
|
||||
bind Bind // bind interface
|
||||
port uint16 // listening port
|
||||
fwmark uint32 // mark value (0 = disabled)
|
||||
}
|
||||
mutex sync.RWMutex
|
||||
privateKey NoisePrivateKey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue