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.