Moved endpoint into interface and simplified peer

This commit is contained in:
Mathias Hall-Andersen
2017-11-18 23:34:02 +01:00
parent fa399a91d5
commit d10126f883
6 changed files with 101 additions and 80 deletions

View File

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