diff options
author | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-07-25 15:08:40 -0700 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2015-07-25 15:08:40 -0700 |
commit | c4792bdfb6a856d6da3fe8b8428afefe0dd6c036 (patch) | |
tree | d84e16ed42c73f5c6a9f67860fd15536a12272dc /components/dlink_tcp | |
parent | 1ac52713cc94f63f58f52a464c9000226a7c6207 (diff) | |
download | rvi_core-c4792bdfb6a856d6da3fe8b8428afefe0dd6c036.tar.gz |
Successfully authorized connection is now stored by peer IP/port instead of remote-reported IP/port
Diffstat (limited to 'components/dlink_tcp')
-rw-r--r-- | components/dlink_tcp/src/dlink_tcp_rpc.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dlink_tcp/src/dlink_tcp_rpc.erl b/components/dlink_tcp/src/dlink_tcp_rpc.erl index 8605ab5..741b549 100644 --- a/components/dlink_tcp/src/dlink_tcp_rpc.erl +++ b/components/dlink_tcp/src/dlink_tcp_rpc.erl @@ -667,7 +667,7 @@ process_authorize(FromPid, PeerIP, PeerPort, TransactionID, RemoteAddress, _ -> { RemoteAddress, RemotePort} end, - case validate_auth_jwt(Signature, Certificates, Conn, CompSpec) of + case validate_auth_jwt(Signature, Certificates, {PeerIP, PeerPort}, CompSpec) of true -> connection_authorized(FromPid, Conn, CompSpec); false -> |