mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
net/dns: remove an unused function
Change-Id: I7c920c76223ffac37954ef2a18754afc52177598 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
c13be0c509
commit
d9efbd97cb
@ -197,14 +197,6 @@ func toIPsOnly(resolvers []dnstype.Resolver) (ret []netaddr.IP) {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
func toIPPorts(ips []netaddr.IP) (ret []netaddr.IPPort) {
|
|
||||||
ret = make([]netaddr.IPPort, 0, len(ips))
|
|
||||||
for _, ip := range ips {
|
|
||||||
ret = append(ret, netaddr.IPPortFrom(ip, 53))
|
|
||||||
}
|
|
||||||
return ret
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *Manager) EnqueuePacket(bs []byte, proto ipproto.Proto, from, to netaddr.IPPort) error {
|
func (m *Manager) EnqueuePacket(bs []byte, proto ipproto.Proto, from, to netaddr.IPPort) error {
|
||||||
return m.resolver.EnqueuePacket(bs, proto, from, to)
|
return m.resolver.EnqueuePacket(bs, proto, from, to)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user