feat: 当无插件参数时, 去除 SS URI 输出中的 / 以兼容部分客户端

This commit is contained in:
xream
2024-05-05 02:11:50 +08:00
parent d43ffe29f8
commit 39ac327444
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ export default function URI_Producer() {
const userinfo = `${proxy.cipher}:${proxy.password}`;
result = `ss://${Base64.encode(userinfo)}@${proxy.server}:${
proxy.port
}/`;
}${proxy.plugin ? '/' : ''}`;
if (proxy.plugin) {
result += '?plugin=';
const opts = proxy['plugin-opts'];