1
0
Fork 0

Relax error checking for home server lookup to handle localhost, etc.

This commit is contained in:
Matt Goodall 2013-04-19 12:44:41 +01:00
parent 1cd15d7297
commit 35be3433e5
1 changed files with 1 additions and 4 deletions

View File

@ -16,10 +16,7 @@ const (
func HomeServerAddrs(jid JID) (addr []string, err error) { func HomeServerAddrs(jid JID) (addr []string, err error) {
// DNS lookup. // DNS lookup.
_, addrs, err := net.LookupSRV("xmpp-client", "tcp", jid.Domain) _, addrs, _ := net.LookupSRV("xmpp-client", "tcp", jid.Domain)
if err != nil {
return
}
// If there's nothing in DNS then assume the JID's domain and the standard // If there's nothing in DNS then assume the JID's domain and the standard
// port will work. // port will work.