mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
update box
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user