mirror of
https://github.com/logos-messaging/go-multiaddr.git
synced 2026-01-04 05:53:05 +00:00
commit
eef9246270
@ -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/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/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/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",
|
||||||
"/ip4/127.0.0.1/tcp/127/wss",
|
"/ip4/127.0.0.1/tcp/127/wss",
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,6 +29,7 @@ const (
|
|||||||
P_GARLIC32 = 0x01BF
|
P_GARLIC32 = 0x01BF
|
||||||
P_P2P_WEBRTC_DIRECT = 0x0114
|
P_P2P_WEBRTC_DIRECT = 0x0114
|
||||||
P_TLS = 0x01c0
|
P_TLS = 0x01c0
|
||||||
|
P_NOISE = 0x01c6
|
||||||
P_WS = 0x01DD
|
P_WS = 0x01DD
|
||||||
P_WSS = 0x01DE // deprecated alias for /tls/ws
|
P_WSS = 0x01DE // deprecated alias for /tls/ws
|
||||||
)
|
)
|
||||||
@ -202,7 +203,11 @@ var (
|
|||||||
Name: "tls",
|
Name: "tls",
|
||||||
Code: P_TLS,
|
Code: P_TLS,
|
||||||
VCode: CodeToVarint(P_TLS),
|
VCode: CodeToVarint(P_TLS),
|
||||||
Size: 0,
|
}
|
||||||
|
protoNOISE = Protocol{
|
||||||
|
Name: "noise",
|
||||||
|
Code: P_NOISE,
|
||||||
|
VCode: CodeToVarint(P_NOISE),
|
||||||
}
|
}
|
||||||
protoWS = Protocol{
|
protoWS = Protocol{
|
||||||
Name: "ws",
|
Name: "ws",
|
||||||
@ -243,6 +248,7 @@ func init() {
|
|||||||
protoUNIX,
|
protoUNIX,
|
||||||
protoP2P_WEBRTC_DIRECT,
|
protoP2P_WEBRTC_DIRECT,
|
||||||
protoTLS,
|
protoTLS,
|
||||||
|
protoNOISE,
|
||||||
protoWS,
|
protoWS,
|
||||||
protoWSS,
|
protoWSS,
|
||||||
} {
|
} {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user