Add route.default_interface option

This commit is contained in:
世界
2022-07-15 11:51:51 +08:00
parent 5a3de62c50
commit 377f3f83a2
12 changed files with 45 additions and 23 deletions

View File

@@ -30,9 +30,10 @@ type Router interface {
LookupDefault(ctx context.Context, domain string) ([]netip.Addr, error)
InterfaceBindManager() control.BindManager
DefaultInterface() string
AutoDetectInterface() bool
DefaultInterfaceName() string
DefaultInterfaceIndex() int
AutoDetectInterfaceName() string
AutoDetectInterfaceIndex() int
}
type Rule interface {