mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
Rename BootstrapNode#{LOCAL_HOST => LOCALHOST}
This commit is contained in:
parent
1ea30fb4ae
commit
ce5155ebdc
3 changed files with 6 additions and 3 deletions
|
@ -56,7 +56,10 @@ public class SeedNode {
|
||||||
interfaceHint = namespace.getString(ArgumentParser.INTERFACE_HINT_FLAG);
|
interfaceHint = namespace.getString(ArgumentParser.INTERFACE_HINT_FLAG);
|
||||||
|
|
||||||
int serverPort = Integer.valueOf(namespace.getString(ArgumentParser.PORT_FLAG));
|
int serverPort = Integer.valueOf(namespace.getString(ArgumentParser.PORT_FLAG));
|
||||||
String seedID = namespace.getString(ArgumentParser.PEER_ID_FLAG);
|
String seedID = BootstrapNode.LOCALHOST.getId();
|
||||||
|
if (namespace.getString(ArgumentParser.PEER_ID_FLAG) != null) {
|
||||||
|
seedID = namespace.getString(ArgumentParser.PEER_ID_FLAG);
|
||||||
|
}
|
||||||
|
|
||||||
final Set<PeerAddress> peerAddresses = new HashSet<>();
|
final Set<PeerAddress> peerAddresses = new HashSet<>();
|
||||||
for (Node node : BootstrapNode.values()) {
|
for (Node node : BootstrapNode.values()) {
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class DefaultMessageModule extends AbstractBitsquareModule implements Mes
|
||||||
|
|
||||||
bind(Node.class)
|
bind(Node.class)
|
||||||
.annotatedWith(Names.named("bootstrapNode"))
|
.annotatedWith(Names.named("bootstrapNode"))
|
||||||
.toInstance(BootstrapNode.LOCAL_HOST);
|
.toInstance(BootstrapNode.LOCALHOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package io.bitsquare.network;
|
package io.bitsquare.network;
|
||||||
|
|
||||||
public enum BootstrapNode implements Node {
|
public enum BootstrapNode implements Node {
|
||||||
LOCAL_HOST("localhost", "127.0.0.1", 5000),
|
LOCALHOST("localhost", "127.0.0.1", 5000),
|
||||||
DIGITAL_OCEAN1("digitalocean1.bitsquare.io", "188.226.179.109", 5000);
|
DIGITAL_OCEAN1("digitalocean1.bitsquare.io", "188.226.179.109", 5000);
|
||||||
|
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
Loading…
Add table
Reference in a new issue