From 35be3433e5f1140958fb1e3f3d0f2586aee9b7f3 Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Fri, 19 Apr 2013 12:44:41 +0100 Subject: [PATCH] Relax error checking for home server lookup to handle localhost, etc. --- src/xmpp/dns.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xmpp/dns.go b/src/xmpp/dns.go index 3914460..4b1d136 100644 --- a/src/xmpp/dns.go +++ b/src/xmpp/dns.go @@ -16,10 +16,7 @@ const ( func HomeServerAddrs(jid JID) (addr []string, err error) { // DNS lookup. - _, addrs, err := net.LookupSRV("xmpp-client", "tcp", jid.Domain) - if err != nil { - return - } + _, addrs, _ := net.LookupSRV("xmpp-client", "tcp", jid.Domain) // If there's nothing in DNS then assume the JID's domain and the standard // port will work.