Compare commits
2 Commits
dev
...
89522c0536
Author | SHA1 | Date | |
---|---|---|---|
89522c0536 | |||
4e66533cbc |
@ -10,3 +10,4 @@ implemented interfaces / functionalities:
|
|||||||
* log
|
* log
|
||||||
* sync
|
* sync
|
||||||
|
|
||||||
|
Produced by GoldenPogácsa Inc.
|
@ -9,14 +9,6 @@ class SyncView(FlaskView):
|
|||||||
|
|
||||||
def post(self):
|
def post(self):
|
||||||
remote_uuid = request.json['uuid']
|
remote_uuid = request.json['uuid']
|
||||||
|
|
||||||
if 'ip' in request.json:
|
|
||||||
remote_ip = request.json['ip']
|
|
||||||
|
|
||||||
if request.remote_addr != remote_ip:
|
|
||||||
current_app.logger.debug(f"IP was overriden by the remote consumer {remote_ip} instead of {request.remote_addr}")
|
|
||||||
|
|
||||||
else:
|
|
||||||
remote_ip = request.remote_addr
|
remote_ip = request.remote_addr
|
||||||
|
|
||||||
cust_key = f"consumer_{remote_uuid}"
|
cust_key = f"consumer_{remote_uuid}"
|
||||||
|
Reference in New Issue
Block a user