Add support for overtls custom configuration

https://github.com/ShadowsocksR-Live/overtls
pull/6626/head
2dust 2025-02-03 15:43:26 +08:00
parent 2a0012824a
commit e6b27d17e4
3 changed files with 11 additions and 0 deletions

View File

@ -13,6 +13,7 @@ namespace ServiceLib.Enums
juicity = 25,
hysteria2 = 26,
brook = 27,
overtls = 28,
v2rayN = 99
}
}

View File

@ -19,6 +19,7 @@ namespace ServiceLib
public const string SpeedPingTestUrl = @"https://www.google.com/generate_204";
public const string JuicityCoreUrl = "https://github.com/juicity/juicity/releases";
public const string BrookCoreUrl = "https://github.com/txthinking/brook/releases";
public const string OvertlsCoreUrl = "https://github.com/ShadowsocksR-Live/overtls/releases";
public const string SingboxRulesetUrl = @"https://raw.githubusercontent.com/2dust/sing-box-rules/rule-set-{0}/{1}.srs";
public const string IPAPIUrl = "https://api.ip.sb/geoip";

View File

@ -188,6 +188,15 @@ namespace ServiceLib.Handler
Arguments = " {0}",
Url = Global.BrookCoreUrl,
AbsolutePath = true,
},
new CoreInfo
{
CoreType = ECoreType.overtls,
CoreExes = [ "overtls-bin", "overtls"],
Arguments = "-r client -c {0}",
Url = Global.OvertlsCoreUrl,
AbsolutePath = false,
}
];