psk
This commit is contained in:
@@ -55,7 +55,12 @@ func Init(ctx context.Context) (*DHTService, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
psk, err := LoadPSKFromFile()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
h, err := libp2p.New(
|
||||
libp2p.PrivateNetwork(psk),
|
||||
libp2p.Identity(priv),
|
||||
libp2p.ListenAddrStrings(
|
||||
fmt.Sprintf("/ip4/0.0.0.0/tcp/%d", conf.GetConfig().DHTEndpointPort),
|
||||
|
||||
Reference in New Issue
Block a user