IPv6 address fix

This commit is contained in:
zzz
2022-01-10 13:31:35 -05:00
parent 153922c144
commit 0498ea69ea

View File

@ -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;