Skip to content

Commit

Permalink
fix IPv6 connectivity to XMR nodes #1076
Browse files Browse the repository at this point in the history
  • Loading branch information
fa2a5qj3 committed Jun 30, 2024
1 parent 1debdde commit 856faaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/haveno/core/xmr/nodes/XmrNodes.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static XmrNode fromFullAddress(String fullAddress) {
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(".")) {
Expand Down

0 comments on commit 856faaf

Please sign in to comment.