Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Nov 16, 2017
1 parent 23b7685 commit aa2c1f7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa2c1f7

Please sign in to comment.