Srv entry is no longer optional when using connect_with_srv

This commit is contained in:
Paul Fariello 2020-12-06 15:31:27 +01:00
commit 5463a0aa99
3 changed files with 7 additions and 12 deletions

View file

@ -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?,
};