Commit 935b3cf4 authored by ics's avatar ics
Browse files

getNomadServerEndpoint return address instead of name as

getServerEndpoint
parent f2fb1473
* getNomadServerEndpoint return address instead of name as getServerEndpoint
* Use new protocol buf 3.12.1
4.0.20 16/06/2020
......
......@@ -609,6 +609,24 @@ public class ConfigManager {
return nomadServerEndpoint;
}
// The server endpoint can be partially defined in the variable 'serverPort'.
// In that case, the own IP address is used.
// It is necessary in case of a remote client because this endpoint is passed to the server responder to contact the client for its response.
// In future implementation of requester/responder this may not be necessary.
String serverPort = getStringOrNothingAtAll("serverPort");
// Default value for port.
if (serverPort == null) {
serverPort = "7000";
}
try {
nomadServerEndpoint = "tcp://" + InetAddress.getLocalHost().getHostAddress() + ":" + serverPort;
System.out.println("================> serverEndPoint " + nomadServerEndpoint);
return nomadServerEndpoint;
} catch (UnknownHostException e) {
}
return "tcp://localhost:7000";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment