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 {
starting sync.WaitGroup
stopping sync.WaitGroup
mutex sync.RWMutex
bind Bind // bind interface
port uint16 // listening port
fwmark uint32 // mark value (0 = disabled)
mutex sync.RWMutex
bind Bind // bind interface
port uint16 // listening port
fwmark uint32 // mark value (0 = disabled)
}
staticIdentity struct {

View file

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