Call peer.Open from engine

This commit is contained in:
Zoltán Papp 2024-06-18 11:23:39 +02:00
parent 63b4041e9c
commit d8ab3c1632

View File

@ -826,6 +826,7 @@ func (e *Engine) addNewPeer(peerConfig *mgmProto.RemotePeerConfig) error {
if err != nil {
return fmt.Errorf("create peer connection: %w", err)
}
conn.Open()
e.peerConns[peerKey] = conn
if e.beforePeerHook != nil && e.afterPeerHook != nil {