We only need the certificate in ConnectionState (#953)

This commit is contained in:
Nate Brown 2023-08-21 14:11:06 -05:00 committed by GitHub
parent 5a131b2975
commit 7edcf620c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 37 additions and 51 deletions

View file

@ -165,7 +165,7 @@ func (c *Control) GetCert() *cert.NebulaCertificate {
}
func (c *Control) ReHandshake(vpnIp iputil.VpnIp) {
hostinfo := c.f.handshakeManager.AddVpnIp(vpnIp, c.f.initHostInfo)
hostinfo := c.f.handshakeManager.AddVpnIp(vpnIp)
ixHandshakeStage0(c.f, vpnIp, hostinfo)
// If this is a static host, we don't need to wait for the HostQueryReply