Skip to content

Commit

Permalink
Deprecate secio to noise.
Browse files Browse the repository at this point in the history
Closes #1214
  • Loading branch information
Jorropo committed Aug 28, 2020
1 parent 0dfa9ca commit cc8105a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clusterhost.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
routing "github.com/libp2p/go-libp2p-core/routing"
dht "github.com/libp2p/go-libp2p-kad-dht"
dual "github.com/libp2p/go-libp2p-kad-dht/dual"
noise "github.com/libp2p/go-libp2p-noise"
pubsub "github.com/libp2p/go-libp2p-pubsub"
libp2pquic "github.com/libp2p/go-libp2p-quic-transport"
record "github.com/libp2p/go-libp2p-record"
secio "github.com/libp2p/go-libp2p-secio"
libp2ptls "github.com/libp2p/go-libp2p-tls"
routedhost "github.com/libp2p/go-libp2p/p2p/host/routed"
identify "github.com/libp2p/go-libp2p/p2p/protocol/identify"
Expand Down Expand Up @@ -118,7 +118,7 @@ func baseOpts(psk corepnet.PSK) []libp2p.Option {
libp2p.PrivateNetwork(psk),
libp2p.EnableNATService(),
libp2p.Security(libp2ptls.ID, libp2ptls.New),
libp2p.Security(secio.ID, secio.New),
libp2p.Security(noise.ID, noise.New),
// TODO: quic does not support private networks
// libp2p.Transport(libp2pquic.NewTransport),
libp2p.DefaultTransports,
Expand Down

0 comments on commit cc8105a

Please sign in to comment.