From 822d8a25fe77f9ced31ec297ba35b5d925eb2863 Mon Sep 17 00:00:00 2001 From: arm64v8a <48624112+arm64v8a@users.noreply.github.com> Date: Fri, 10 Mar 2023 15:41:27 +0900 Subject: [PATCH] fix resolve domain to ip --- fmt/AbstractBean.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmt/AbstractBean.cpp b/fmt/AbstractBean.cpp index fe7251b..7bfc3ae 100644 --- a/fmt/AbstractBean.cpp +++ b/fmt/AbstractBean.cpp @@ -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; } }