This commit is contained in:
Jason A. Donenfeld 2018-05-20 06:29:46 +02:00
parent c5fa3de24c
commit 058cedcf66
2 changed files with 4 additions and 5 deletions

View File

@ -37,10 +37,10 @@ type Device struct {
net struct { net struct {
starting sync.WaitGroup starting sync.WaitGroup
stopping sync.WaitGroup stopping sync.WaitGroup
mutex sync.RWMutex mutex sync.RWMutex
bind Bind // bind interface bind Bind // bind interface
port uint16 // listening port port uint16 // listening port
fwmark uint32 // mark value (0 = disabled) fwmark uint32 // mark value (0 = disabled)
} }
staticIdentity struct { staticIdentity struct {

View File

@ -177,7 +177,6 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) {
return nil, err return nil, err
} }
tunIfindex, err := func() (int, error) { tunIfindex, err := func() (int, error) {
iface, err := net.InterfaceByName(name) iface, err := net.InterfaceByName(name)
if err != nil { if err != nil {