Commit 0795217c authored by Jeromy's avatar Jeromy
Browse files

dont advertise loopback address over mdns

parent 4a260476
......@@ -44,6 +44,9 @@ type mdnsService struct {
func getDialableListenAddr(ph host.Host) (*net.TCPAddr, error) {
for _, addr := range ph.Addrs() {
if manet.IsIPLoopback(addr) {
continue
}
na, err := manet.ToNetAddr(addr)
if err != nil {
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment