本帖最后由 mayapop 于 2021-12-29 15:31 编辑
原意是 ipv4对奈飞 ipv6 原生 ,xtls启动报错代码如下 : 改了很久都报错,实在找不到哪里出问题了。
Failed to start: main: failed to load config files: [/usr/local/etc/xray/config.json] > infra/conf/serial: failed to decode config: /usr/local/etc/xray/config.json > infra/conf/serial: failed to read config file at line 100 char 1 > invalid character ‘}’ looking for beginning of object key string
{ "inbounds": [{ "port": 443, "protocol": "vless", "settings": { "clients": [ { "id": "4dab1498-edb3-4972-a9b1-54596b363d3c", "flow": "xtls-rprx-direct", "level": 0 } ], "decryption": "none", "fallbacks": [ { "alpn": "http/1.1", "dest": 80 }, { "alpn": "h2", "dest": 81 } ] }, "sniffing": { "enabled": true, //一定要开启 sniffing,V2Ray 才能识别 Netflix 的流量 "destOverride": ["http", "tls"] }, "streamSettings": { "network": "tcp", "security": "xtls", "xtlsSettings": { "serverName": "xxxx.xyz", "alpn": ["http/1.1", "h2"], "certificates": [ { "certificateFile": "/usr/local/etc/xray/sg81.lokta.xyz.pem", "keyFile": "/usr/local/etc/xray/sg81.lokta.xyz.key" } ] } }
}], "outbounds": [ { "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" }, "tag": "IP-V4" }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "type":"field", "domain": [ "geosite:netflix" ], "inboundTag": [ "all-in" ], "outboundTag": "IP-V4" }, { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, } |