From 8142df7531ecb41ec04d57cad82a5534a58d01e5 Mon Sep 17 00:00:00 2001 From: Zachary Huff Date: Thu, 22 Oct 2015 03:23:35 -0400 Subject: [PATCH] Add uv_platform --- pritunl/server/instance_com.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pritunl/server/instance_com.py b/pritunl/server/instance_com.py index 1432b0121..2e4ab0d54 100644 --- a/pritunl/server/instance_com.py +++ b/pritunl/server/instance_com.py @@ -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 @@ -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: