forked from jshiffer/go-xmpp
parent
fe6cea870d
commit
7deaf59642
@ -109,7 +109,7 @@ func NewClient(config Config, r *Router) (c *Client, err error) {
|
||||
for _, srv := range srvEntries {
|
||||
if srv.Priority <= bestSrv.Priority && srv.Weight >= bestSrv.Weight {
|
||||
bestSrv = srv
|
||||
config.Address = ensurePort(srv.Target, srv.Port)
|
||||
config.Address = ensurePort(srv.Target, int(srv.Port))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user