Minor fixes

This commit is contained in:
世界 2022-07-07 21:39:44 +08:00
parent 6d16497f03
commit 6a0987c52a
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 20 additions and 9 deletions

View file

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