update box

This commit is contained in:
arm64v8a
2022-10-19 17:26:02 +08:00
parent c779ffc528
commit 9684271bb6
5 changed files with 56 additions and 46 deletions

View File

@@ -125,6 +125,11 @@ namespace NekoRay::fmt {
if (!scy.isEmpty()) security = scy;
// TLS (XTLS?)
if (!objN["tls"].toString().isEmpty()) stream->security = "tls";
if (stream->security == "tls" && IsIpAddress(serverAddress) &&
(!stream->host.isEmpty()) && stream->sni.isEmpty()) {
// v2rayN config builder generate sni like this, so set sni here for their format.
stream->sni = stream->host;
}
// TODO quic & kcp
return true;
}