anchor.diff:          undefined ->
               {ignore, Req};
           AccessToken ->
  -            {PeerIp, _Port} = cowboy_req:peer(Req),
  +            PeerIp = resolve_peer_ip(Req),
               {onezone_tokens:authenticate_user(AccessToken, PeerIp), Req}
       end.
   
  
positive.code:     end.
  
  
  %% @private
  -spec check_emergency_passphrase(Passphrase :: binary()) ->
      #client{} | #error{}.
  
negative.code: -include("modules/errors.hrl").
  -include("modules/models.hrl").
  -include_lib("ctool/include/logging.hrl").
  -include_lib("ctool/include/http/headers.hrl").
  
  %% API
  -export([authenticate/2, authenticate_by_onezone_auth_token/1,
  