From 9afe0275298860a702a8856f6ffd5ca8dec962f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 12 Sep 2022 14:19:59 +0200 Subject: Add close/1 to gun_tls_proxy_cb to avoid undef crashes --- src/gun_tls_proxy_cb.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gun_tls_proxy_cb.erl b/src/gun_tls_proxy_cb.erl index 3591e7f..801ceef 100644 --- a/src/gun_tls_proxy_cb.erl +++ b/src/gun_tls_proxy_cb.erl @@ -20,6 +20,7 @@ -export([controlling_process/2]). -export([send/2]). -export([setopts/2]). +-export([close/1]). %% The connect/4 function is called by the process %% that calls ssl:connect/2,3,4. @@ -35,3 +36,6 @@ send(Socket, Data) -> setopts(Socket, Opts) -> gun_tls_proxy:cb_setopts(Socket, Opts). + +close(_) -> + ok. -- cgit v1.2.3