From 201d3da3a5a7153e63c94bee9f85d4de4db57073 Mon Sep 17 00:00:00 2001 From: test Date: Thu, 9 Nov 2023 10:34:31 +0800 Subject: [PATCH] update config issue --- ProxySuper.Core/Services/XrayConfigBuilder.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ProxySuper.Core/Services/XrayConfigBuilder.cs b/ProxySuper.Core/Services/XrayConfigBuilder.cs index 87d04a0..cbee313 100644 --- a/ProxySuper.Core/Services/XrayConfigBuilder.cs +++ b/ProxySuper.Core/Services/XrayConfigBuilder.cs @@ -79,7 +79,8 @@ namespace ProxySuper.Core.Services } var domain = parameters.MaskDomain .TrimStart("http://".ToCharArray()) - .TrimStart("https://".ToCharArray()); + .TrimStart("https://".ToCharArray()) + .TrimEnd('/'); caddyStr = caddyStr.Replace("##reverse_proxy##", $"reverse_proxy {prefix}{domain} {{ \n header_up Host {domain} \n }}"); } @@ -103,7 +104,7 @@ namespace ProxySuper.Core.Services } else { - flow = "xtls-rprx-vision,none";//兼容普通tls与xtls + flow = "xtls-rprx-vision";//兼容普通tls与xtls obj = new { id = id, flow = flow }; }