mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-03-14 18:06:34 -04:00
Added binding for INET so DHTManager seed peer doesn't choose IPv6 for it's public peer address
This commit is contained in:
parent
24ba66e665
commit
d24e4cfd84
@ -21,6 +21,7 @@ import io.bitsquare.msg.actor.command.InitializePeer;
|
||||
import io.bitsquare.msg.actor.event.PeerInitialized;
|
||||
|
||||
import net.tomp2p.connection.Bindings;
|
||||
import net.tomp2p.connection.StandardProtocolFamily;
|
||||
import net.tomp2p.dht.PeerBuilderDHT;
|
||||
import net.tomp2p.dht.PeerDHT;
|
||||
import net.tomp2p.nat.PeerBuilderNAT;
|
||||
@ -61,6 +62,7 @@ public class DHTManager extends AbstractActor {
|
||||
|
||||
try {
|
||||
bindings = new Bindings();
|
||||
bindings.addProtocol(StandardProtocolFamily.INET);
|
||||
if (ip.getInterfaceHint() != null) {
|
||||
bindings.addInterface(ip.getInterfaceHint());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user