fix resolve domain to ip

This commit is contained in:
arm64v8a
2023-03-10 15:41:27 +09:00
parent caac7d6b7c
commit 822d8a25fe

View File

@@ -61,10 +61,10 @@ namespace NekoRay::fmt {
// replace ws tls
if (stream != nullptr) {
if (stream->security == "tls" && !stream->sni.isEmpty()) {
if (stream->security == "tls" && stream->sni.isEmpty()) {
stream->sni = domain;
}
if (stream->network == "ws" && !stream->host.isEmpty()) {
if (stream->network == "ws" && stream->host.isEmpty()) {
stream->host = domain;
}
}