mirror of https://github.com/v2ray/v2ray-core
update default config
parent
e475812635
commit
cb6376ec27
|
@ -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": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue