mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2026-01-01 15:29:02 +08:00
fix resolve domain to ip
This commit is contained in:
parent
caac7d6b7c
commit
822d8a25fe
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user