IPv6 address fix
This commit is contained in:
@ -45,6 +45,8 @@ public class JSONRPC2Interface {
|
||||
public static void setupSession() {
|
||||
URL srvURL = null;
|
||||
String srvHost = _conf.getConf("server.hostname", "localhost");
|
||||
if (srvHost.contains(":"))
|
||||
srvHost = '[' + srvHost + ']';
|
||||
int srvPort = _conf.getConf("server.port", 7650);
|
||||
String srvTarget = _conf.getConf("server.target", "jsonrpc");
|
||||
String method;
|
||||
|
Reference in New Issue
Block a user