better tunnel management and cache dns of url test
This commit is contained in:
@@ -39,6 +39,9 @@ func makeTunnelConfig(Ipv6 bool, ServerPort int32, StrictRoute bool, EndpointInd
|
||||
ipv6 = ""
|
||||
}
|
||||
base := `{
|
||||
"log":{
|
||||
"level": "warn"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
@@ -46,7 +49,7 @@ func makeTunnelConfig(Ipv6 bool, ServerPort int32, StrictRoute bool, EndpointInd
|
||||
"interface_name": "HiddifyTunnel",
|
||||
"inet4_address": "172.19.0.1/30",
|
||||
` + ipv6 + `
|
||||
"mtu": 9000,
|
||||
"mtu": 1492,
|
||||
"auto_route": true,
|
||||
"strict_route": ` + fmt.Sprintf("%t", StrictRoute) + `,
|
||||
"endpoint_independent_nat": ` + fmt.Sprintf("%t", EndpointIndependentNat) + `,
|
||||
@@ -67,21 +70,16 @@ func makeTunnelConfig(Ipv6 bool, ServerPort int32, StrictRoute bool, EndpointInd
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"auto_detect_interface": true,
|
||||
|
||||
"rules": [
|
||||
{
|
||||
"process_name":"Hiddify.exe",
|
||||
"outbound": "direct-out"
|
||||
},
|
||||
{
|
||||
"process_name":"Hiddify",
|
||||
"outbound": "direct-out"
|
||||
},
|
||||
{
|
||||
"process_name":"HiddifyCli",
|
||||
"outbound": "direct-out"
|
||||
},
|
||||
{
|
||||
"process_name":"HiddifyCli.exe",
|
||||
"process_name":[
|
||||
"Hiddify.exe",
|
||||
"Hiddify",
|
||||
"HiddifyCli",
|
||||
"HiddifyCli.exe"
|
||||
],
|
||||
"outbound": "direct-out"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user