mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-14 12:29:13 +00:00
Fixes hy2
This commit is contained in:
parent
ade4cbcf80
commit
46688d04b3
1 changed files with 21 additions and 0 deletions
|
@ -60,6 +60,27 @@ public class CoreConfigHy2Service
|
|||
configJsonNode["server"] = node.Address + ":" + port;
|
||||
configJsonNode["auth"] = node.Id;
|
||||
|
||||
if (node.Sni.IsNotEmpty())
|
||||
{
|
||||
configJsonNode["tls"] = new JsonObject
|
||||
{
|
||||
["sni"] = node.Sni,
|
||||
["insecure"] = node.AllowInsecure.ToLower() == "true"
|
||||
};
|
||||
}
|
||||
|
||||
if (node.Path.IsNotEmpty())
|
||||
{
|
||||
configJsonNode["obfs"] = new JsonObject
|
||||
{
|
||||
["type"] = "salamander ",
|
||||
["salamander"] = new JsonObject
|
||||
{
|
||||
["password"] = node.Path
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
var bandwidthObject = new JsonObject();
|
||||
if (_config.HysteriaItem.UpMbps > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue