1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-12-04 19:16:05 +03:00

update config issue

This commit is contained in:
test 2023-11-09 10:34:31 +08:00
parent 03f015f8d4
commit 201d3da3a5

View File

@ -79,7 +79,8 @@ namespace ProxySuper.Core.Services
} }
var domain = parameters.MaskDomain var domain = parameters.MaskDomain
.TrimStart("http://".ToCharArray()) .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 }}"); caddyStr = caddyStr.Replace("##reverse_proxy##", $"reverse_proxy {prefix}{domain} {{ \n header_up Host {domain} \n }}");
} }
@ -103,7 +104,7 @@ namespace ProxySuper.Core.Services
} }
else else
{ {
flow = "xtls-rprx-vision,none";//兼容普通tls与xtls flow = "xtls-rprx-vision";//兼容普通tls与xtls
obj = new { id = id, flow = flow }; obj = new { id = id, flow = flow };
} }