aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/DNSQueries.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/DNSQueries.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/DNSQueries.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/DNSQueries.java b/src/main/java/com/juick/xmpp/s2s/DNSQueries.java
index 2b2d60e0..e4c5f085 100644
--- a/src/main/java/com/juick/xmpp/s2s/DNSQueries.java
+++ b/src/main/java/com/juick/xmpp/s2s/DNSQueries.java
@@ -1,5 +1,6 @@
package com.juick.xmpp.s2s;
+import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.util.Hashtable;
import java.util.Random;
@@ -16,7 +17,7 @@ public class DNSQueries {
private static Random rand = new Random();
- public static HostnamePort getServerAddress(String hostname) throws UnknownHostException {
+ public static InetSocketAddress getServerAddress(String hostname) throws UnknownHostException {
String host = hostname;
int port = 5269;
@@ -41,6 +42,6 @@ public class DNSQueries {
} catch (NamingException e) {
}
- return new HostnamePort(host, port);
+ return new InetSocketAddress(host, port);
}
}