forked from jshiffer/go-xmpp
Only do ensurePort for XMPP transport
If we always do this the address gets mangled, breaking the transport selection.
This commit is contained in:
committed by
Mickaël Rémond
parent
a189748b9c
commit
8fb3e33a1f
@@ -39,5 +39,7 @@ func NewTransport(config TransportConfiguration) Transport {
|
||||
if strings.HasPrefix(config.Address, "ws:") || strings.HasPrefix(config.Address, "wss:") {
|
||||
return &WebsocketTransport{Config: config}
|
||||
}
|
||||
|
||||
config.Address = ensurePort(config.Address, 5222)
|
||||
return &XMPPTransport{Config: config}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user