diff options
author | Loïc Hoguin <[email protected]> | 2022-09-12 14:19:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2022-09-12 14:19:59 +0200 |
commit | 9afe0275298860a702a8856f6ffd5ca8dec962f2 (patch) | |
tree | a6971ce6121a1f6a78c8988ba43e5a43ccdb8a0c /src | |
parent | 180ce23aba863d94c17ee0667cad1ed916f56da1 (diff) | |
download | gun-9afe0275298860a702a8856f6ffd5ca8dec962f2.tar.gz gun-9afe0275298860a702a8856f6ffd5ca8dec962f2.tar.bz2 gun-9afe0275298860a702a8856f6ffd5ca8dec962f2.zip |
Add close/1 to gun_tls_proxy_cb to avoid undef crashes
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_tls_proxy_cb.erl | 4 |
1 files changed, 4 insertions, 0 deletions
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. |