mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 03:28:31 -07:00
Fix relayed to be an integer vs string
This commit is contained in:
parent
6e9f299c19
commit
b611ea659e
1 changed files with 3 additions and 0 deletions
|
@ -1534,6 +1534,9 @@ class PmsConnect(object):
|
||||||
player_details['relayed'] = int(session_details['location'] != 'lan' and
|
player_details['relayed'] = int(session_details['location'] != 'lan' and
|
||||||
player_details['ip_address_public'] == '127.0.0.1')
|
player_details['ip_address_public'] == '127.0.0.1')
|
||||||
|
|
||||||
|
else:
|
||||||
|
player_details['relayed'] = helpers.cast_to_int(player_details['relayed'])
|
||||||
|
|
||||||
# Check if secure connection
|
# Check if secure connection
|
||||||
if player_details['secure'] is not None:
|
if player_details['secure'] is not None:
|
||||||
player_details['secure'] = int(player_details['secure'] == '1')
|
player_details['secure'] = int(player_details['secure'] == '1')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue