mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 20:37:40 +03:00
Minor fixes
This commit is contained in:
parent
6d16497f03
commit
6a0987c52a
5 changed files with 20 additions and 9 deletions
|
@ -3,7 +3,7 @@ package control
|
|||
import (
|
||||
"syscall"
|
||||
|
||||
"github.com/sagernet/sing/common"
|
||||
E "github.com/sagernet/sing/common/exceptions"
|
||||
)
|
||||
|
||||
func BindToInterface(interfaceName string) Func {
|
||||
|
@ -12,6 +12,6 @@ func BindToInterface(interfaceName string) Func {
|
|||
err := conn.Control(func(fd uintptr) {
|
||||
innerErr = syscall.BindToDevice(int(fd), interfaceName)
|
||||
})
|
||||
return common.AnyError(innerErr, err)
|
||||
return E.Errors(innerErr, err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue