fix: sniff domain don't match geosite when override-destination value is false

This commit is contained in:
gVisor bot 2023-02-07 15:59:44 +08:00
parent d22b047fa9
commit b19601fc69

View file

@ -165,7 +165,7 @@ func (m *Metadata) SourceDetail() string {
func (m *Metadata) AddrType() int {
switch true {
case m.Host != "" || !m.DstIP.IsValid():
case m.Host != "" || m.SniffHost != "" || !m.DstIP.IsValid():
return socks5.AtypDomainName
case m.DstIP.Is4():
return socks5.AtypIPv4