mirror of
https://github.com/valitydev/capi-v2.git
synced 2024-11-06 01:55:20 +00:00
TD-385: Fix - default ip if undefined (#22)
This commit is contained in:
parent
10050fd975
commit
4d785873da
@ -34,8 +34,8 @@ encode_client_info(ClientInfo) ->
|
||||
#domain_ClientInfo{
|
||||
fingerprint = maps:get(<<"fingerprint">>, ClientInfo),
|
||||
ip_address = maps:get(<<"ip">>, ClientInfo),
|
||||
peer_ip_address = maps:get(<<"peer_ip">>, ClientInfo),
|
||||
user_ip_address = maps:get(<<"user_ip">>, ClientInfo)
|
||||
peer_ip_address = maps:get(<<"peer_ip">>, ClientInfo, undefined),
|
||||
user_ip_address = maps:get(<<"user_ip">>, ClientInfo, undefined)
|
||||
}.
|
||||
|
||||
-spec encode_residence(binary() | undefined) -> atom().
|
||||
|
Loading…
Reference in New Issue
Block a user