1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-27 22:36:12 -04:00

update default config

This commit is contained in:
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

View File

@ -31,6 +31,13 @@
"auth": "noauth",
"udp": false,
"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.
@ -56,11 +63,20 @@
// Routing controls how traffic from inbounds are sent to outbounds.
"routing": {
"domainStrategy": "IPOnDemand",
"rules":[{
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
}]
"rules":[
{
// Blocks access to private IPs. Remove this if you want to access your router.
"type": "field",
"ip": ["geoip:private"],
"outboundTag": "blocked"
},
{
// Blocks major ads.
"type": "field",
"domain": ["geosite:category-ads"],
"outboundTag": "blocked"
}
]
},
// Dns settings for domain resolution.
@ -69,7 +85,7 @@
"hosts": {
// Blacklist all Baidu domains, including all sub domains.
"domain:baidu.com": "127.0.0.1",
"domain:v2ray.com": "104.27.154.107"
"domain:v2ray.com": "104.27.154.107",
},
"servers": [
{