From 8c5c2d6ee8173b76145a51f80a661efd4bef64d5 Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 6 Dec 2022 11:32:57 +0000 Subject: [PATCH 1/2] Update 'opt/xray/d2ray.json.in' --- opt/xray/d2ray.json.in | 1 + 1 file changed, 1 insertion(+) diff --git a/opt/xray/d2ray.json.in b/opt/xray/d2ray.json.in index 11e5bd1..b62756f 100644 --- a/opt/xray/d2ray.json.in +++ b/opt/xray/d2ray.json.in @@ -23,6 +23,7 @@ "network": "tcp", "security": "xtls", "xtlsSettings": { + "alpn": ["http/1.1", "h2"], "certificates": [ { "certificateFile": "/etc/letsencrypt/live/{{ FQDN }}/fullchain.pem", From 4acf81a470ccfb0a509927d5674734fe86d0f4d8 Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 6 Dec 2022 11:33:55 +0000 Subject: [PATCH 2/2] Update 'opt/user/others/config.json.in' --- opt/user/others/config.json.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opt/user/others/config.json.in b/opt/user/others/config.json.in index a9434fb..14abe90 100644 --- a/opt/user/others/config.json.in +++ b/opt/user/others/config.json.in @@ -70,7 +70,8 @@ "destOverride": ["http", "tls"] }, "settings": { - "udp": true + "auth": "noauth", + "udp": false } } ], @@ -99,7 +100,8 @@ "security": "xtls", "xtlsSettings": { "serverName": "{{ FQDN }}", - "allowInsecure": false + "allowInsecure": false, + "alpn": ["h2","http/1.1"] } } },