Created
September 19, 2014 16:08
-
-
Save ae6rt/5a9b5e34c242a8e982db to your computer and use it in GitHub Desktop.
Give us your interfaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In org.apache.curator.x.discovery.ServiceInstanceBuilder | |
private static final AtomicReference<LocalIpFilter> localIpFilter = new AtomicReference<LocalIpFilter> | |
( | |
new LocalIpFilter() | |
{ | |
@Override | |
public boolean use(NetworkInterface nif, InetAddress adr) throws SocketException | |
{ | |
return (adr != null) && !adr.isLoopbackAddress() && (nif.isPointToPoint() || !adr.isLinkLocalAddress()); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment