aboutsummaryrefslogtreecommitdiffstats
path: root/test/socks_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2021-02-08 16:27:32 +0100
committerLoïc Hoguin <[email protected]>2021-02-08 16:27:32 +0100
commit53205a26d9cbbc09b9b31cf7005293ac9d99eaae (patch)
treec88e68fa40b5bb1edc4326fb27b291080aa2773e /test/socks_SUITE.erl
parentb968200939ff568ed7b427ef7cbe5389d96f473d (diff)
downloadgun-53205a26d9cbbc09b9b31cf7005293ac9d99eaae.tar.gz
gun-53205a26d9cbbc09b9b31cf7005293ac9d99eaae.tar.bz2
gun-53205a26d9cbbc09b9b31cf7005293ac9d99eaae.zip
No longer use ssl:ssl_accept/2
Diffstat (limited to 'test/socks_SUITE.erl')
-rw-r--r--test/socks_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socks_SUITE.erl b/test/socks_SUITE.erl
index 19dfcbe..f4c56c0 100644
--- a/test/socks_SUITE.erl
+++ b/test/socks_SUITE.erl
@@ -59,8 +59,8 @@ do_proxy_init(Parent, Transport, Auth) ->
gen_tcp:accept(ListenSocket, 5000);
gun_tls ->
{ok, ClientSocket0} = ssl:transport_accept(ListenSocket, 5000),
- ssl:ssl_accept(ClientSocket0, 5000),
- {ok, ClientSocket0}
+ {ok, ClientSocket1} = ssl:handshake(ClientSocket0, 5000),
+ {ok, ClientSocket1}
end,
Recv = case Transport of
gun_tcp -> fun gen_tcp:recv/3;