mirror of
https://github.com/XTLS/Xray-examples.git
synced 2024-11-27 11:01:27 +00:00
92 lines
2.8 KiB
Plaintext
92 lines
2.8 KiB
Plaintext
{
|
|
"log": {
|
|
"loglevel": "warning"
|
|
},
|
|
"routing": {
|
|
"domainStrategy": "AsIs",
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"ip": [
|
|
"geoip:private"
|
|
],
|
|
"outboundTag": "direct"
|
|
}
|
|
]
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": "1080",
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"auth": "noauth",
|
|
"udp": true,
|
|
"ip": "127.0.0.1"
|
|
}
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": "1081",
|
|
"protocol": "http"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "vmess",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "",
|
|
"port": 1234,
|
|
"users": [
|
|
{
|
|
"id": ""
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "tcp",
|
|
"tcpSettings": {
|
|
"header": {
|
|
"type": "http",
|
|
"request": {
|
|
"version": "1.1",
|
|
"method": "GET",
|
|
"path": [
|
|
"/"
|
|
],
|
|
"headers": {
|
|
"Host": [
|
|
"www.bing.com",
|
|
"www.cloudflare.com",
|
|
"www.amazon.com"
|
|
],
|
|
"User-Agent": [
|
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Edg/84.0.522.49",
|
|
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.71 Mobile/15E148 Safari/604.1"
|
|
],
|
|
"Accept-Encoding": [
|
|
"gzip, deflate"
|
|
],
|
|
"Connection": [
|
|
"keep-alive"
|
|
],
|
|
"Pragma": "no-cache"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": "none"
|
|
},
|
|
"tag": "proxy"
|
|
},
|
|
{
|
|
"protocol": "freedom",
|
|
"tag": "direct"
|
|
}
|
|
]
|
|
}
|