update default config

pull/1530/head
Darien Raymond 2019-01-27 09:41:02 +01:00
parent e475812635
commit cb6376ec27
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 22 additions and 6 deletions

View File

@ -31,6 +31,13 @@
"auth": "noauth", "auth": "noauth",
"udp": false, "udp": false,
"ip": "127.0.0.1" "ip": "127.0.0.1"
},
// Enable sniffing on TCP connection.
"sniffing": {
"enable": true,
// Target domain will be overriden to the one carried by the connection, if the connection is HTTP or HTTPS.
"destOverride": ["http", "tls"]
} }
}], }],
// List of outbound proxy configurations. // List of outbound proxy configurations.
@ -56,11 +63,20 @@
// Routing controls how traffic from inbounds are sent to outbounds. // Routing controls how traffic from inbounds are sent to outbounds.
"routing": { "routing": {
"domainStrategy": "IPOnDemand", "domainStrategy": "IPOnDemand",
"rules":[{ "rules":[
{
// Blocks access to private IPs. Remove this if you want to access your router.
"type": "field", "type": "field",
"ip": ["geoip:private"], "ip": ["geoip:private"],
"outboundTag": "blocked" "outboundTag": "blocked"
}] },
{
// Blocks major ads.
"type": "field",
"domain": ["geosite:category-ads"],
"outboundTag": "blocked"
}
]
}, },
// Dns settings for domain resolution. // Dns settings for domain resolution.
@ -69,7 +85,7 @@
"hosts": { "hosts": {
// Blacklist all Baidu domains, including all sub domains. // Blacklist all Baidu domains, including all sub domains.
"domain:baidu.com": "127.0.0.1", "domain:baidu.com": "127.0.0.1",
"domain:v2ray.com": "104.27.154.107" "domain:v2ray.com": "104.27.154.107",
}, },
"servers": [ "servers": [
{ {