Skip to content

Commit

Permalink
Merge pull request #4 from gabert/master
Browse files Browse the repository at this point in the history
fixes zeromq/jyre #3
  • Loading branch information
hintjens committed Jan 16, 2014
2 parents 72ca691 + f5f958f commit fbd671f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/zyre/ZreUdp.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.net.InetSocketAddress;
import java.net.NetworkInterface;
import java.net.SocketAddress;
import java.net.Inet4Address;
import java.nio.ByteBuffer;
import java.nio.channels.DatagramChannel;
import java.util.Collections;
Expand Down Expand Up @@ -73,7 +74,8 @@ public ZreUdp (int port_nbr)

Enumeration <InetAddress> inetAddresses = netint.getInetAddresses ();
for (InetAddress addr : Collections.list (inetAddresses)) {
address = addr;
if (addr instanceof Inet4Address)
address = addr;
}
}
host = address.getHostAddress ();
Expand Down

0 comments on commit fbd671f

Please sign in to comment.