chore: add default router when tun enable

This commit is contained in:
MetaCubeX
2022-05-03 23:28:02 +08:00
parent 5c6f2694c7
commit 3fbb7c7a2d
2 changed files with 8 additions and 6 deletions

View File

@ -267,10 +267,10 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
Tun: RawTun{
Enable: false,
Device: "",
AutoDetectInterface: true,
Stack: C.TunGvisor,
DNSHijack: []string{"0.0.0.0:53"}, // default hijack all dns query
AutoRoute: true,
AutoRoute: false,
AutoDetectInterface: false,
},
IPTables: IPTables{
Enable: false,