Fixed tunnel version

This commit is contained in:
Adolfo Gómez García 2022-02-05 17:50:55 +01:00
parent f58cc159a7
commit d5c9ee341d
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ BANDWIDTH_TIME = 10
# Commands LENGTH (all same length) # Commands LENGTH (all same length)
COMMAND_LENGTH = 4 COMMAND_LENGTH = 4
VERSION = 'v1.0' VERSION = 'v2.0.0'
# Valid commands # Valid commands
COMMAND_OPEN = b'OPEN' COMMAND_OPEN = b'OPEN'

View File

@ -259,7 +259,7 @@ class TunnelProtocol(asyncio.Protocol):
url, url,
headers={ headers={
'content-type': 'application/json', 'content-type': 'application/json',
'User-Agent': f'UDSTunnel-{consts.VERSION}', 'User-Agent': f'UDSTunnel/{consts.VERSION}',
}, },
) )
if not r.ok: if not r.ok: