mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-19 16:50:56 +00:00
chore: use cname in tunnel
This commit is contained in:
parent
c555cec490
commit
6cee7213c4
1 changed files with 2 additions and 0 deletions
|
@ -204,6 +204,8 @@ func preHandleMetadata(metadata *C.Metadata) error {
|
|||
} else if node, ok := resolver.DefaultHosts.Search(host, false); ok {
|
||||
// redir-host should lookup the hosts
|
||||
metadata.DstIP, _ = node.RandIP()
|
||||
}else if node!=nil&&node.IsDomain{
|
||||
metadata.Host=node.Domain
|
||||
}
|
||||
} else if resolver.IsFakeIP(metadata.DstIP) {
|
||||
return fmt.Errorf("fake DNS record %s missing", metadata.DstIP)
|
||||
|
|
Loading…
Add table
Reference in a new issue