diff --git a/connection_state.go b/connection_state.go index 52607496e..edf20af7b 100644 --- a/connection_state.go +++ b/connection_state.go @@ -30,7 +30,6 @@ type ConnectionState struct { func NewConnectionState(l *logrus.Logger, cipher string, certState *CertState, initiator bool, pattern noise.HandshakePattern, psk []byte, pskStage int) *ConnectionState { var dhFunc noise.DHFunc - switch certState.Certificate.Details.Curve { case cert.Curve_CURVE25519: dhFunc = noise.DH25519