This commit is contained in:
Maze.tsz 2021-12-27 06:44:17 +08:00
parent ebc3f36236
commit a06382cebc
2 changed files with 3 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) {
ProxyGroup: []map[string]interface{}{},
Tun: Tun{
Enable: false,
Stack: "lwip",
Stack: "gvisor",
DNSListen: "0.0.0.0:53",
AutoRoute: true,
},

View File

@ -21,6 +21,7 @@ type TunDevice interface {
func SetLinuxAutoRoute() {
log.Infoln("Tun adapter auto setting global route")
addLinuxSystemRoute("0")
addLinuxSystemRoute("1")
addLinuxSystemRoute("2/7")
addLinuxSystemRoute("4/6")
@ -34,6 +35,7 @@ func SetLinuxAutoRoute() {
func RemoveLinuxAutoRoute() {
log.Infoln("Tun adapter removing global route")
delLinuxSystemRoute("0")
delLinuxSystemRoute("1")
delLinuxSystemRoute("2/7")
delLinuxSystemRoute("4/6")