mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-24 17:11:35 +00:00
Fix lint error
This commit is contained in:
parent
8932ab0519
commit
ff751a5409
@ -36,7 +36,7 @@ func (t *tcp) getControl(sintf string) func(string, string, syscall.RawConn) err
|
|||||||
btd := func(fd uintptr) {
|
btd := func(fd uintptr) {
|
||||||
err = unix.BindToDevice(int(fd), sintf)
|
err = unix.BindToDevice(int(fd), sintf)
|
||||||
}
|
}
|
||||||
c.Control(btd)
|
_ = c.Control(btd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.links.core.log.Debugln("Failed to set SO_BINDTODEVICE:", sintf)
|
t.links.core.log.Debugln("Failed to set SO_BINDTODEVICE:", sintf)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user