From 5e7ed23e955e98bc238111a8eb7cf16d3a9ad6bf Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 2 Jan 2023 15:00:17 +0100 Subject: [PATCH] xray-vision --- opt/user/android/配置教程.txt.in | 20 +++++++++++--------- opt/user/others/config.json.in | 10 +++++----- opt/xray/d2ray.json.in | 11 +++++++++-- 3 files changed, 25 insertions(+), 16 deletions(-) diff --git a/opt/user/android/配置教程.txt.in b/opt/user/android/配置教程.txt.in index ca0ad56..4deeb35 100644 --- a/opt/user/android/配置教程.txt.in +++ b/opt/user/android/配置教程.txt.in @@ -2,15 +2,17 @@ 2. 打开V2rayNG app 3. 右上角箭头->新加配置文件->手动输入[VLess] -别名:随便起 -地址:{{ FQDN }} -端口:{{ PORT }} -用户id:{{ USER }} -流控(flow):{{ FLOW }} -传输协议:tcp -伪装类型:none -底层传输安全:xtls -跳过证书验证:false +别名(remarks):随便起 +地址(address):{{ FQDN }} +端口(port):{{ PORT }} +用户ID(id):{{ USER }} +流控(flow):{{ FLOW }} +传输协议(network):tcp +伪装类型(type):none +传输层安全(tls):tls +uTLS: firefox +alpn: h2,http/1.1 +跳过证书验证(allowInsecure):false 以上没有提到的选项统统默认值 diff --git a/opt/user/others/config.json.in b/opt/user/others/config.json.in index a9434fb..630c1da 100644 --- a/opt/user/others/config.json.in +++ b/opt/user/others/config.json.in @@ -87,8 +87,7 @@ { "id": "{{ USER }}", "encryption": "none", - "flow": "{{ FLOW }}", - "level": 0 + "flow": "{{ FLOW }}" } ] } @@ -96,10 +95,11 @@ }, "streamSettings": { "network": "tcp", - "security": "xtls", - "xtlsSettings": { + "security": "tls", + "tlsSettings": { "serverName": "{{ FQDN }}", - "allowInsecure": false + "allowInsecure": false, + "fingerprint": "safari" } } }, diff --git a/opt/xray/d2ray.json.in b/opt/xray/d2ray.json.in index 11e5bd1..1c4a23d 100644 --- a/opt/xray/d2ray.json.in +++ b/opt/xray/d2ray.json.in @@ -21,8 +21,8 @@ }, "streamSettings": { "network": "tcp", - "security": "xtls", - "xtlsSettings": { + "security": "tls", + "tlsSettings": { "certificates": [ { "certificateFile": "/etc/letsencrypt/live/{{ FQDN }}/fullchain.pem", @@ -30,6 +30,13 @@ } ] } + }, + "sniffing": { + "enabled": true, + "destOverride": [ + "http", + "tls" + ] } } ],