1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

remove unused function

This commit is contained in:
Darien Raymond 2017-11-16 18:54:10 +01:00
parent 23b768576e
commit aa2c1f76f4
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -52,18 +52,6 @@ func NewRouter(ctx context.Context, config *Config) (*Router, error) {
return r, nil
}
func (r *Router) resolveIP(dest net.Destination) []net.Address {
ips := r.dnsServer.Get(dest.Address.Domain())
if len(ips) == 0 {
return nil
}
dests := make([]net.Address, len(ips))
for idx, ip := range ips {
dests[idx] = net.IPAddress(ip)
}
return dests
}
type ipResolver struct {
ip []net.Address
domain string