mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix IPv6 connectivity to XMR nodes #1076
This commit is contained in:
parent
1debdde33e
commit
856faafd1c
@ -150,7 +150,7 @@ public class XmrNodes {
|
||||
if (parts[0].contains("[") && parts[0].contains(":")) {
|
||||
// IPv6 address and optional port number
|
||||
// address part delimited by square brackets e.g. [2a01:123:456:789::2]:8333
|
||||
host = parts[0].replace("[", "").replace("]", "");
|
||||
host = parts[0] + "]"; // keep the square brackets per RFC-2732
|
||||
if (parts.length == 2)
|
||||
port = Integer.parseInt(parts[1].replace(":", ""));
|
||||
} else if (parts[0].contains(":") && !parts[0].contains(".")) {
|
||||
|
Loading…
Reference in New Issue
Block a user