Skip to content

Commit

Permalink
use xmppdomain instead of host
Browse files Browse the repository at this point in the history
  • Loading branch information
mightymop committed Sep 24, 2021
1 parent d24a4d1 commit 0473d43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ public static Map.Entry<Socket, Boolean> createSocketToXmppDomain( String xmppDo
/*
* Fallback: If no dns entry was found for xmpp service subdomain, try the xmpp (parent) domain itself.
* */
if (USE_FALLBACK.getValue()&&tryparent&&realHostname.contains("."))
if (USE_FALLBACK.getValue()&&tryparent&&xmppDomain.contains("."))
{
String realHostnameWithoutSubdomain = realHostname.substring(realHostname.indexOf(".")+1);
Log.info("Try to connect to parent domain {}:{}",realHostnameWithoutSubdomain,port);
return createSocketToXmppDomain(realHostnameWithoutSubdomain,port,false);
String xmppDomainWithoutSubdomain = xmppDomain.substring(xmppDomain.indexOf(".")+1);
Log.info("Try to connect to parent domain {}:{}",xmppDomainWithoutSubdomain,port);
return createSocketToXmppDomain(xmppDomainWithoutSubdomain,port,false);
}
}
}
Expand Down

0 comments on commit 0473d43

Please sign in to comment.