diff options
author | Loïc Hoguin <[email protected]> | 2019-09-11 07:22:07 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-09-22 16:46:28 +0200 |
commit | 92fd84f61f95a0ecb8aea75c28207d81a9c6f94d (patch) | |
tree | f93a875d3ab457e8f4189a7a2a86377f6e900349 /src/gun_tls_proxy.erl | |
parent | 4194682d4edaee3da34783c46a513698eb1e8d05 (diff) | |
download | gun-92fd84f61f95a0ecb8aea75c28207d81a9c6f94d.tar.gz gun-92fd84f61f95a0ecb8aea75c28207d81a9c6f94d.tar.bz2 gun-92fd84f61f95a0ecb8aea75c28207d81a9c6f94d.zip |
Initial support for Socks5
Diffstat (limited to 'src/gun_tls_proxy.erl')
-rw-r--r-- | src/gun_tls_proxy.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gun_tls_proxy.erl b/src/gun_tls_proxy.erl index 3978822..d519919 100644 --- a/src/gun_tls_proxy.erl +++ b/src/gun_tls_proxy.erl @@ -237,6 +237,7 @@ not_connected(cast, Msg={setopts, _}, State) -> {keep_state_and_data, postpone}; not_connected(cast, Msg={connect_proc, {ok, Socket}}, State=#state{owner_pid=OwnerPid, extra=Extra}) -> ?DEBUG_LOG("msg ~0p state ~0p", [Msg, State]), + %% @todo We should distinguish case when no protocol was negotiated (for socks). Protocol = case ssl:negotiated_protocol(Socket) of {ok, <<"h2">>} -> gun_http2; _ -> gun_http |