summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/isode/stroke/network/PlatformDomainNameResolver.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/isode/stroke/network/PlatformDomainNameResolver.java b/src/com/isode/stroke/network/PlatformDomainNameResolver.java
index ccdee6d..3eef682 100644
--- a/src/com/isode/stroke/network/PlatformDomainNameResolver.java
+++ b/src/com/isode/stroke/network/PlatformDomainNameResolver.java
@@ -25,7 +25,9 @@ public class PlatformDomainNameResolver extends DomainNameResolver {
public void run() {
final Collection<HostAddress> results = new ArrayList<HostAddress>();
try {
- results.add(new HostAddress(InetAddress.getByName(hostname)));
+ for (InetAddress result : InetAddress.getAllByName(hostname)) {
+ results.add(new HostAddress(result));
+ }
} catch (UnknownHostException ex) {
}
eventLoop.postEvent(new Callback() {