mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 11:07:38 +03:00
Remove uploaderID from public relays to avoid real time tracking of user without consent
This commit is contained in:
parent
f13b4dfc30
commit
a221ae13c3
@ -146,7 +146,7 @@ def parse_and_error_handle(data):
|
||||
parsed_message['header']['gatewayTimestamp'] = datetime.utcnow().isoformat() + 'Z'
|
||||
parsed_message['header']['uploaderIP'] = get_remote_address()
|
||||
|
||||
# Sends the parsed to the Relay/Monitor as compressed JSON.
|
||||
# Sends the parsed message to the Relay/Monitor as compressed JSON.
|
||||
gevent.spawn(push_message, parsed_message, parsed_message['$schemaRef'])
|
||||
logger.info("Accepted %s upload from %s" % (
|
||||
parsed_message, get_remote_address()
|
||||
|
@ -95,6 +95,10 @@ class Relay(Thread):
|
||||
statsCollector.tally("duplicate")
|
||||
return
|
||||
|
||||
# Remove ID to end consumer (Avoid realtime user tracking without their consent)
|
||||
if 'uploaderID' in json['header']:
|
||||
del json['header']['uploaderID']
|
||||
|
||||
# Remove IP to end consumer
|
||||
if 'uploaderIP' in json['header']:
|
||||
del json['header']['uploaderIP']
|
||||
|
Loading…
x
Reference in New Issue
Block a user