소스 검색

fix comment

JackDoan 2 일 전
부모
커밋
20e39c18d1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      connection_manager.go

+ 1 - 2
connection_manager.go

@@ -567,11 +567,10 @@ func (cm *connectionManager) tryRehandshake(hostinfo *HostInfo) {
 	if peerCrt != nil && curCrtVersion < peerCrt.Certificate.Version() {
 		// if our certificate version is less than theirs, and we have a matching version available, rehandshake?
 		if cs.getCertificate(peerCrt.Certificate.Version()) != nil {
-			//todo trigger rehandshake with specific cert?
 			cm.l.WithField("vpnAddrs", hostinfo.vpnAddrs).
 				WithField("version", curCrtVersion).
 				WithField("peerVersion", peerCrt.Certificate.Version()).
-				WithField("reason", "local certificate version mismatch with peer, correcting").
+				WithField("reason", "local certificate version lower than peer, attempting to correct").
 				Info("Re-handshaking with remote")
 			cm.intf.handshakeManager.StartHandshake(hostinfo.vpnAddrs[0], func(hh *HandshakeHostInfo) {
 				hh.initiatingVersionOverride = peerCrt.Certificate.Version()