Refactor from base project
This commit is contained in:
@@ -28,7 +28,7 @@ public class Loader extends AbstractLoader<Loader> {
|
||||
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
|
||||
String host = properties.getProperty("remote.host");
|
||||
int port = Integer.valueOf(properties.getProperty("remote.port"));
|
||||
addSender(protocol, implementation, host, port);
|
||||
addClientSender(protocol, implementation, host, port);
|
||||
} catch (NumberFormatException e) {
|
||||
throw new LoaderException("Failed to parse remote.port");
|
||||
}
|
||||
@@ -44,7 +44,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"));
|
||||
addForwarder(protocol, implementation, port);
|
||||
addServerForwarder(protocol, implementation, port);
|
||||
} catch (NumberFormatException e) {
|
||||
throw new LoaderException("Failed to parse server.port");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user