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

@@ -47,7 +47,7 @@ Set the default route to the Tun.
!!! error ""
To avoid traffic loopback, set `route.auto_delect_interface` or `outbound.bind_interface`
To avoid traffic loopback, set `route.auto_detect_interface` or `route.default_interface` or `outbound.bind_interface`
#### hijack_dns

View File

@@ -7,7 +7,8 @@
"geosite": {},
"rules": [],
"final": "",
"auto_detect_interface": false
"auto_detect_interface": false,
"default_interface": "en0"
}
}
```
@@ -32,4 +33,14 @@ Default outbound tag. the first outbound will be used if empty.
Bind outbound connections to the default NIC by default to prevent routing loops under Tun.
Takes no effect if `outbound.bind_interface` is set.
Takes no effect if `outbound.bind_interface` is set.
#### default_interface
!!! error ""
Linux and Windows only
Bind outbound connections to the specified NIC by default to prevent routing loops under Tun.
Takes no effect if `auto_detect_interface` is set.