Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
Unwrap real socket for SSL info
Browse files Browse the repository at this point in the history
  • Loading branch information
acogoluegnes committed Feb 21, 2017
1 parent 66bbb7a commit 5c94b56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/amqp_direct_connection.erl
Expand Up @@ -190,8 +190,9 @@ socket_adapter_info(Sock, Protocol) ->
additional_info = maybe_ssl_info(Sock)}.

maybe_ssl_info(Sock) ->
case rabbit_net:is_ssl(Sock) of
true -> [{ssl, true}] ++ ssl_info(Sock) ++ ssl_cert_info(Sock);
RealSocket = rabbit_net:unwrap_socket(Sock),
case rabbit_net:is_ssl(RealSocket) of
true -> [{ssl, true}] ++ ssl_info(RealSocket) ++ ssl_cert_info(RealSocket);
false -> [{ssl, false}]
end.

Expand Down

0 comments on commit 5c94b56

Please sign in to comment.