Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr
Commits
eef92462
Unverified
Commit
eef92462
authored
Jul 01, 2021
by
Steven Allen
Committed by
GitHub
Jul 01, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #156 from marten-seemann/add-noise
add Noise
parents
0fcbe893
89ffaeea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
multiaddr_test.go
multiaddr_test.go
+2
-0
protocols.go
protocols.go
+7
-1
No files found.
multiaddr_test.go
View file @
eef92462
...
...
@@ -169,7 +169,9 @@ func TestConstructSucceeds(t *testing.T) {
"/ip4/127.0.0.1/tcp/9090/http/p2p-webrtc-direct"
,
"/ip4/127.0.0.1/tcp/127/ws"
,
"/ip4/127.0.0.1/tcp/127/ws"
,
"/ip4/127.0.0.1/tcp/127/tls"
,
"/ip4/127.0.0.1/tcp/127/tls/ws"
,
"/ip4/127.0.0.1/tcp/127/noise"
,
"/ip4/127.0.0.1/tcp/127/wss"
,
"/ip4/127.0.0.1/tcp/127/wss"
,
}
...
...
protocols.go
View file @
eef92462
...
...
@@ -29,6 +29,7 @@ const (
P_GARLIC32
=
0x01BF
P_P2P_WEBRTC_DIRECT
=
0x0114
P_TLS
=
0x01c0
P_NOISE
=
0x01c6
P_WS
=
0x01DD
P_WSS
=
0x01DE
// deprecated alias for /tls/ws
)
...
...
@@ -202,7 +203,11 @@ var (
Name
:
"tls"
,
Code
:
P_TLS
,
VCode
:
CodeToVarint
(
P_TLS
),
Size
:
0
,
}
protoNOISE
=
Protocol
{
Name
:
"noise"
,
Code
:
P_NOISE
,
VCode
:
CodeToVarint
(
P_NOISE
),
}
protoWS
=
Protocol
{
Name
:
"ws"
,
...
...
@@ -243,6 +248,7 @@ func init() {
protoUNIX
,
protoP2P_WEBRTC_DIRECT
,
protoTLS
,
protoNOISE
,
protoWS
,
protoWSS
,
}
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment