mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-16 12:33:48 +02:00
Ensure that state has always a session_id
This commit is contained in:
parent
036c63b3c6
commit
c7238e60d2
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ start_link(Socket) ->
|
|||
%% Client IP address,
|
||||
%% If certificate is revoked, this will fail right away here.
|
||||
%% mod_epp does exactly the same thing.
|
||||
handle_cast(serve, State = #state{socket = Socket}) ->
|
||||
handle_cast(serve,
|
||||
State = #state{socket = Socket,
|
||||
session_id = _SessionId}) ->
|
||||
{ok, {PeerIp, _PeerPort}} = ssl:peername(Socket),
|
||||
case ssl:handshake(Socket) of
|
||||
{ok, SecureSocket} ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue