Add route.default_interface option

This commit is contained in:
世界
2022-07-15 11:51:51 +08:00
parent 12795bc504
commit 0c5e07b2d2
12 changed files with 45 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ import (
func BindToInterface(router adapter.Router) control.Func {
return func(network, address string, conn syscall.RawConn) error {
interfaceName := router.DefaultInterfaceName()
interfaceName := router.AutoDetectInterfaceName()
if interfaceName == "" {
return nil
}