This commit is contained in:
		@@ -9,7 +9,15 @@ class SyncView(FlaskView):
 | 
			
		||||
 | 
			
		||||
    def post(self):
 | 
			
		||||
        remote_uuid = request.json['uuid']
 | 
			
		||||
        remote_ip = request.remote_addr
 | 
			
		||||
 | 
			
		||||
        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
 | 
			
		||||
 | 
			
		||||
        cust_key = f"consumer_{remote_uuid}"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user