X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpConnection.java;h=d585022f3e17ab472abcabe082b2445514cc531a;hb=2b77426f2c37342d979fb44b8bb89991d61df6d0;hp=9a83f4e3143a335caadd4fd49e4350c633c814ed;hpb=7efea8c164769901ab87ae77864935d2351942d0;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/FcpConnection.java b/src/net/pterodactylus/util/fcp/FcpConnection.java index 9a83f4e..d585022 100644 --- a/src/net/pterodactylus/util/fcp/FcpConnection.java +++ b/src/net/pterodactylus/util/fcp/FcpConnection.java @@ -70,6 +70,17 @@ public class FcpConnection { private Map incomingMessageStatistics = Collections.synchronizedMap(new HashMap()); /** + * Creates a new FCP connection to the freenet node running on localhost, + * using the default port. + * + * @throws UnknownHostException + * if the hostname can not be resolved + */ + public FcpConnection() throws UnknownHostException { + this(InetAddress.getLocalHost()); + } + + /** * Creates a new FCP connection to the Freenet node running on the given * host, listening on the default port. *