mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-08-22 09:11:48 +00:00
Use core.Transport
This commit is contained in:
@@ -59,7 +59,7 @@ func (e *Engine) ResolveAndMatch(host string) (Action, string, *net.IPAddr, erro
|
||||
ip, zone := parseIPZone(host)
|
||||
if ip == nil {
|
||||
// Domain
|
||||
ipAddr, err := e.Transport.OutResolveIPAddr(host)
|
||||
ipAddr, err := e.Transport.LocalResolveIPAddr(host)
|
||||
if v, ok := e.Cache.Get(host); ok {
|
||||
// Cache hit
|
||||
ce := v.(cacheEntry)
|
||||
|
Reference in New Issue
Block a user