Skip to content

Commit

Permalink
fix: ipv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
amydevs committed Oct 16, 2023
1 parent a8d7782 commit a975fd3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"@matrixai/events": "^3.2.3",
"@matrixai/id": "^3.3.6",
"@matrixai/logger": "^3.1.0",
"@matrixai/mdns": "^1.1.3",
"@matrixai/mdns": "^1.1.4",
"@matrixai/quic": "^0.1.5",
"@matrixai/resources": "^1.1.5",
"@matrixai/rpc": "^0.2.4",
Expand Down
7 changes: 5 additions & 2 deletions src/nodes/NodeConnectionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1243,10 +1243,13 @@ class NodeConnectionManager {
else if (quicUtils.isIPv4MappedIPv6(host_)) host = quicUtils.fromIPv4MappedIPv6(host_) as any;
else continue;
break;
case 'ipv4&ipv6':
if (quicUtils.isIPv4(host_)) host = host_ as any;
case 'ipv6':
if (quicUtils.isIPv6(host_)) host = host_ as any
else continue;
break;
case 'ipv4&ipv6':
host = host_ as any;
break;
default:
continue;
}
Expand Down

0 comments on commit a975fd3

Please sign in to comment.