summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <klishinm@vmware.com>2021-09-07 09:11:52 +0300
committerMichael Klishin <michael@clojurewerkz.org>2021-09-07 09:17:12 +0300
commitd8e88c377be284e22f75fc7b7c4a45ce43e9c323 (patch)
tree415e7073d08a6ea016ca39cf6bcc374a48e39115
parentb054f6efade72144980ca18a3b8f427b9ee4243e (diff)
downloadrabbitmq-server-git-d8e88c377be284e22f75fc7b7c4a45ce43e9c323.tar.gz
Merge pull request #3371 from processone/3175-fixup
Fix some edge cases in handling ssl information from PROXY protocol (cherry picked from commit 14e1a53f76f9b00250917494f2fe233fd3cb9022)
-rw-r--r--deps/rabbit_common/src/rabbit_net.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/rabbit_common/src/rabbit_net.erl b/deps/rabbit_common/src/rabbit_net.erl
index 8ac59a2eb2..a2325c45be 100644
--- a/deps/rabbit_common/src/rabbit_net.erl
+++ b/deps/rabbit_common/src/rabbit_net.erl
@@ -112,7 +112,7 @@ proxy_ssl_info(Sock, {rabbit_proxy_socket, _, ProxyInfo}) ->
end,
CipherSuite = case ssl:str_to_suite(binary_to_list(Cipher)) of
#{} = CS -> CS;
- _ -> ssl_info(Sock)
+ _ -> nossl
end,
case {Proto, CipherSuite} of
{nossl, _} -> ssl_info(Sock);