Relax error checking for home server lookup to handle localhost, etc.
This commit is contained in:
parent
1cd15d7297
commit
35be3433e5
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue