Move comments regarding default ports to Node#DEFAULT_PORT

This commit is contained in:
Chris Beams 2014-11-10 13:47:45 +01:00
parent 50e27014fb
commit 5ab837658b
No known key found for this signature in database
GPG Key ID: 3D214F8F5BC5ED73
2 changed files with 6 additions and 4 deletions

View File

@ -20,10 +20,6 @@ package io.bitsquare.network;
import java.util.Arrays;
import java.util.List;
// Ports 7366-7390 are not registered @see
// <a href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=103</a>
// Lets use ports in that range 7366-7390
// 7366 will be used as default port
public interface BootstrapNodes {
Node DIGITAL_OCEAN_1 = Node.at("digitalocean1.bitsquare.io", "188.226.179.109");

View File

@ -22,6 +22,12 @@ import com.google.common.base.Objects;
public final class Node {
public static final String NAME_KEY = "name";
public static final String PORT_KEY = "port";
/**
* Default port is one <a
* href="https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?&page=103">
* currently unassigned by IANA</a> (7366-7390).
*/
public static final int DEFAULT_PORT = 7366;
private final String name;