This commit is contained in:
Michael Klishin 2025-04-26 17:24:20 -04:00
parent 09c546a1c8
commit c9b2b7fb22
No known key found for this signature in database
GPG Key ID: 16AB14D00D613900
2 changed files with 4 additions and 4 deletions

View File

@ -252,7 +252,7 @@
<% } %>
<th>Bound to</th>
<th>Port</th>
<th>SSL</th>
<th>TLS</th>
</tr>
<%
for (var i = 0; i < overview.listeners.length; i++) {
@ -265,7 +265,7 @@
<% } %>
<td><%= listener.ip_address %></td>
<td><%= listener.port %></td>
<td class="c"><%= fmt_boolean(listener.ssl || false) %></td>
<td class="c"><%= fmt_boolean(listener.tls || false) %></td>
</tr>
<% } %>
</table>

View File

@ -280,7 +280,7 @@ listener(#listener{node = Node, protocol = Protocol,
{ip_address, ip(IPAddress)},
{port, Port},
{socket_opts, format_socket_opts(Opts)},
{ssl, is_ssl_socket(Opts)}
{tls, has_tls_enabled(Opts)}
].
web_context(Props0) ->
@ -288,7 +288,7 @@ web_context(Props0) ->
Props = proplists:delete(ssl_opts, Props0),
[{ssl_opts, format_socket_opts(SslOpts)} | Props].
is_ssl_socket(Opts) ->
has_tls_enabled(Opts) ->
S = proplists:get_value(socket_opts, Opts, Opts),
(proplists:get_value(ssl_opts, S, undefined) =/= undefined) orelse
(proplists:get_value(cacertfile, S, undefined) =/= undefined) orelse