From 909fdbc62417af5730e2df848d335a386e524189 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 6 Apr 2026 22:33:31 -0400 Subject: [PATCH] Fix partial tls support b07b1d8 broke TLS support introduced in a5a0c4f . This was identified and fixed by perplexity computer . --- apps/arweave/src/ar_http_iface_server.erl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/arweave/src/ar_http_iface_server.erl b/apps/arweave/src/ar_http_iface_server.erl index 7a6c78cec2..e748c63a17 100644 --- a/apps/arweave/src/ar_http_iface_server.erl +++ b/apps/arweave/src/ar_http_iface_server.erl @@ -128,10 +128,13 @@ start_http_iface_listener(Config) -> not_set -> cowboy:start_clear(ar_http_iface_listener, TransportOpts, ProtocolOpts); _ -> - cowboy:start_tls(ar_http_iface_listener, TransportOpts ++ [ - {certfile, TlsCertfilePath}, - {keyfile, TlsKeyfilePath} - ], ProtocolOpts) + cowboy:start_tls(ar_http_iface_listener, + TransportOpts#{socket_opts => [ + {port, Config#config.port}, + {certfile, TlsCertfilePath}, + {keyfile, TlsKeyfilePath} + ]}, + ProtocolOpts) end. name_route([]) ->