Srv entry is no longer optional when using connect_with_srv
This commit is contained in:
parent
7b4a6e3ace
commit
5463a0aa99
3 changed files with 7 additions and 12 deletions
|
|
@ -109,7 +109,7 @@ impl Client {
|
|||
// TCP connection
|
||||
let tcp_stream = match server {
|
||||
ServerConfig::UseSrv => {
|
||||
connect_with_srv(&jid.clone().domain(), Some("_xmpp-client._tcp"), 5222).await?
|
||||
connect_with_srv(&jid.clone().domain(), "_xmpp-client._tcp", 5222).await?
|
||||
}
|
||||
ServerConfig::Manual { host, port } => connect_to_host(host.as_str(), port).await?,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue