mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-04-13 20:28:32 +10:00
Add route.default_interface option
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user