Explorar o código

docs: document how to retrieve peercert

Zaiming (Stone) Shi %!s(int64=2) %!d(string=hai) anos
pai
achega
c64e599e81
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      apps/emqx/src/emqx_channel.erl

+ 2 - 0
apps/emqx/src/emqx_channel.erl

@@ -1996,6 +1996,8 @@ trim_conninfo(ConnInfo) ->
             %% NOTE
             %% We remove the peercert because it duplicates what's stored in the socket,
             %% otherwise it wastes about 1KB per connection.
+            %% Retrieve with: esockd_transport:peercert(Socket).
+            %% Decode with APIs exported from esockd_peercert and esockd_ssl
             peercert
         ],
         ConnInfo