Skip to content

Commit

Permalink
Fix DTLS state reporting
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed May 5, 2021
1 parent 684f6db commit abc38e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main.c
Expand Up @@ -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);
Expand Down

0 comments on commit abc38e6

Please sign in to comment.