From: David Woodhouse Date: Wed, 5 May 2021 17:24:02 +0000 (+0100) Subject: Fix DTLS state reporting X-Git-Tag: v8.20~228 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=abc38e6fe8c829fdb78da99ea8b7f19b627e7d9b;p=users%2Fdwmw2%2Fopenconnect.git Fix DTLS state reporting Signed-off-by: David Woodhouse --- diff --git a/main.c b/main.c index 722f4d9c..ed301267 100644 --- a/main.c +++ b/main.c @@ -1435,13 +1435,21 @@ static void print_connection_info(struct openconnect_info *vpninfo) break; case DTLS_SLEEPING: case DTLS_SECRET: + case DTLS_CONNECTING: dtls_state = _("in progress"); break; case DTLS_DISABLED: dtls_state = _("disabled"); break; - default: + case DTLS_CONNECTED: dtls_state = _("connected"); + break; + case DTLS_ESTABLISHED: + dtls_state = _("established"); + break; + default: + dtls_state = _("unknown"); + break; } ssl_compr = openconnect_get_cstp_compression(vpninfo);