chore: parse user's hosts before remoteDial

This commit is contained in:
wwqgtxx
2022-10-29 09:02:38 +08:00
parent 6106adc6a5
commit a46436f61a
3 changed files with 14 additions and 2 deletions

View File

@ -16,6 +16,7 @@ const (
DNSNormal DNSMode = iota
DNSFakeIP
DNSMapping
DNSHosts
)
type DNSMode int
@ -64,6 +65,8 @@ func (e DNSMode) String() string {
return "fake-ip"
case DNSMapping:
return "redir-host"
case DNSHosts:
return "hosts"
default:
return "unknown"
}