Skip to content

Commit

Permalink
Add uv_platform
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhuff386 committed Oct 22, 2015
1 parent 5faa48b commit 8142df7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pritunl/server/instance_com.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def parse_line(self, line):
if remote_ip.startswith('::ffff:'):
remote_ip = remote_ip.split(':')[-1]
self.client['remote_ip'] = remote_ip
elif env_key == 'IV_PLAT':
elif env_key == 'IV_PLAT' and not self.client.get('platform'):
if 'chrome' in env_val.lower():
env_val = 'chrome'
self.client['device_id'] = uuid.uuid4().hex
Expand All @@ -125,6 +125,8 @@ def parse_line(self, line):
self.client['device_id'] = env_val
elif env_key == 'UV_NAME':
self.client['device_name'] = env_val
elif env_key == 'UV_PLATFORM':
self.client['platform'] = env_val
elif env_key == 'password':
self.client['otp_code'] = env_val
else:
Expand Down

0 comments on commit 8142df7

Please sign in to comment.