Commit bdde058a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Do not create outgoing connection if hostname is empty or null.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1455 b35dd754-fafc-0310-a699-88a17e54d16e
parent 8d3462ce
......@@ -70,6 +70,10 @@ public class OutgoingServerSession extends Session {
* @return True if the domain was authenticated by the remote server.
*/
public static boolean authenticateDomain(String domain, String hostname) {
if (hostname == null || hostname.length() == 0) {
// Do nothing if the target hostname is empty or null
return false;
}
try {
// TODO Check if the remote hostname is in the blacklist
// TODO Keep a list of ports to connect to for each hostname or use the default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment