control/noise: review fixups

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-07-30 11:38:10 -07:00
committed by Dave Anderson
parent 0b392dbaf7
commit cf90392174
4 changed files with 146 additions and 88 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ func TestHandshake(t *testing.T) {
t.Fatal("client and server disagree on handshake hash")
}
if client.ProtocolVersion() != protocolVersion {
if client.ProtocolVersion() != int(protocolVersion) {
t.Fatalf("client reporting wrong protocol version %d, want %d", client.ProtocolVersion(), protocolVersion)
}
if client.ProtocolVersion() != server.ProtocolVersion() {