mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
fix tls bug in import (#100)
This commit is contained in:
@@ -124,7 +124,8 @@ namespace NekoRay::fmt {
|
||||
auto scy = objN["scy"].toString();
|
||||
if (!scy.isEmpty()) security = scy;
|
||||
// TLS (XTLS?)
|
||||
if (!objN["tls"].toString().isEmpty()) stream->security = "tls";
|
||||
if (!objN["tls"].toString().isEmpty() && objN["tls"].toString().toLower() != "none")
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user