Refactor from base project

This commit is contained in:
2015-06-25 16:01:06 +01:00
parent cccb76a03d
commit b422958f5d
4 changed files with 6 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ public class Loader extends AbstractLoader<Loader> {
String protocol = properties.getOrDefault("server.protocol", "tcp").toString();
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
int port = Integer.valueOf(properties.getProperty("remote.port"));
addForwarder(protocol, implementation, port);
addServerForwarder(protocol, implementation, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse remote.port");
}
@@ -43,7 +43,7 @@ public class Loader extends AbstractLoader<Loader> {
String protocol = properties.getOrDefault("server.protocol", "tcp").toString();
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
int port = Integer.valueOf(properties.getProperty("server.port"));
addSender(protocol, implementation, "localhost", port);
addServerSender(protocol, implementation, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse server.port");
}