mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 23:13:09 +00:00
use nim-libp2p 1.10.1
This commit is contained in:
parent
9a341a68e5
commit
cc8f453434
2
vendor/nim-libp2p
vendored
2
vendor/nim-libp2p
vendored
@ -1 +1 @@
|
||||
Subproject commit aa8ce46f782240cb99a7222c474022b8cfd24e52
|
||||
Subproject commit cd60b254a0700b0daac7a6cb2c0c48860b57c539
|
||||
@ -47,10 +47,14 @@ proc withWssTransport*(
|
||||
): SwitchBuilder {.raises: [Defect, IOError].} =
|
||||
let key: TLSPrivateKey = getSecureKey(secureKeyPath)
|
||||
let cert: TLSCertificate = getSecureCert(secureCertPath)
|
||||
b.withWsTransport(
|
||||
tlsPrivateKey = key,
|
||||
tlsCertificate = cert,
|
||||
{TLSFlags.NoVerifyHost, TLSFlags.NoVerifyServerName}, # THIS IS INSECURE, NO?
|
||||
b.withTransport(
|
||||
proc(upgr: Upgrade, privateKey: crypto.PrivateKey): Transport =
|
||||
WsTransport.new(
|
||||
upgr,
|
||||
tlsPrivateKey = key,
|
||||
tlsCertificate = cert,
|
||||
{TLSFlags.NoVerifyHost, TLSFlags.NoVerifyServerName},
|
||||
)
|
||||
)
|
||||
|
||||
proc newWakuSwitch*(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user