Compare commits

..

1 commit

Author SHA1 Message Date
DHR60
852419472f
Merge ffd4249d43 into 30e663cd4f 2025-11-19 12:59:13 +00:00
2 changed files with 4 additions and 17 deletions

View file

@ -177,27 +177,20 @@ public class ShadowsocksFmt : BaseFmt
{
var pluginStr = queryParameters["plugin"];
var pluginParts = pluginStr.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
if (pluginParts.Length == 0)
{
return null;
}
var pluginName = pluginParts[0];
// A typo in https://github.com/shadowsocks/shadowsocks-org/blob/6b1c064db4129de99c516294960e731934841c94/docs/doc/sip002.md?plain=1#L15
// "simple-obfs" should be "obfs-local"
if (pluginName == "simple-obfs")
{
pluginName = "obfs-local";
}
// Parse obfs-local plugin
if (pluginName == "obfs-local")
{
var obfsMode = pluginParts.FirstOrDefault(t => t.StartsWith("obfs="));
var obfsHost = pluginParts.FirstOrDefault(t => t.StartsWith("obfs-host="));
if ((!obfsMode.IsNullOrEmpty()) && obfsMode.Contains("obfs=http") && obfsHost.IsNotEmpty())
{
obfsHost = obfsHost.Replace("obfs-host=", "");
@ -236,7 +229,7 @@ public class ShadowsocksFmt : BaseFmt
if (hasTls)
{
item.StreamSecurity = Global.StreamSecurity;
if (!certRaw.IsNullOrEmpty())
{
var certBase64 = certRaw.Replace("certRaw=", "");

View file

@ -1,6 +0,0 @@
{
"sdk": {
"version": "8.0.416",
"rollForward": "disable"
}
}