update default config

This commit is contained in:
Alireza Ahmadi
2025-01-11 11:24:45 +01:00
parent 8fb5d3964a
commit 88adcc7c9a
3 changed files with 15 additions and 28 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ var defaultConfig = `{
"protocol": [
"dns"
],
"outbound": "dns-out",
"action": "route"
"action": "hijack-dns"
}
]
},
-10
View File
@@ -21,7 +21,6 @@ const defaultJson = `
"mtu": 9000,
"auto_route": true,
"strict_route": false,
"sniff": true,
"endpoint_independent_nat": false,
"stack": "system",
"platform": {
@@ -36,7 +35,6 @@ const defaultJson = `
"type": "mixed",
"listen": "127.0.0.1",
"listen_port": 2080,
"sniff": true,
"users": []
}
]
@@ -204,14 +202,6 @@ func (j *JsonService) addDefaultOutbounds(outbounds *[]map[string]interface{}, o
"type": "direct",
"tag": "direct",
},
{
"type": "dns",
"tag": "dns-out",
},
{
"type": "block",
"tag": "block",
},
}
*outbounds = append(outbound, *outbounds...)
}