-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support /quic-v1 and /webtransport listeners
- Loading branch information
Showing
3 changed files
with
66 additions
and
60 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/node_modules/multiaddr/src/convert.js b/node_modules/multiaddr/src/convert.js | ||
index c315201..80170c7 100644 | ||
--- a/node_modules/multiaddr/src/convert.js | ||
+++ b/node_modules/multiaddr/src/convert.js | ||
@@ -51,6 +51,7 @@ Convert.toString = function convertToString (proto, buf) { | ||
case 55: // dns6 | ||
case 56: // dnsaddr | ||
case 400: // unix | ||
+ case 466: // certhash | ||
case 777: // memory | ||
return bytes2str(buf) | ||
|
||
@@ -84,6 +85,7 @@ Convert.toBytes = function convertToBytes (/** @type {string | number } */ proto | ||
case 55: // dns6 | ||
case 56: // dnsaddr | ||
case 400: // unix | ||
+ case 466: // certhash | ||
case 777: // memory | ||
return str2bytes(str) | ||
|
||
diff --git a/node_modules/multiaddr/src/protocols-table.js b/node_modules/multiaddr/src/protocols-table.js | ||
index 3431af5..8939fb1 100644 | ||
--- a/node_modules/multiaddr/src/protocols-table.js | ||
+++ b/node_modules/multiaddr/src/protocols-table.js | ||
@@ -60,6 +60,9 @@ Protocols.table = [ | ||
[445, 296, 'onion3'], | ||
[446, V, 'garlic64'], | ||
[460, 0, 'quic'], | ||
+ [461, 0, 'quic-v1'], | ||
+ [465, 0, 'webtransport'], | ||
+ [466, V, 'certhash'], | ||
[477, 0, 'ws'], | ||
[478, 0, 'wss'], | ||
[479, 0, 'p2p-websocket-star'], |