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