Add tun support for macOS

This commit is contained in:
世界
2022-08-05 16:55:46 +08:00
parent f691bd5ce1
commit dfa10d4ebe
11 changed files with 21 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ import (
var warnBindInterfaceOnUnsupportedPlatform = warning.New(
func() bool {
return !(C.IsLinux || C.IsWindows)
return !(C.IsLinux || C.IsWindows || C.IsDarwin)
},
"outbound option `bind_interface` is only supported on Linux and Windows",
)