mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 21:14:37 +03:00
fix resolve domain to ip
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user