forked from shaba/openuds
adding "build" to actor
This commit is contained in:
parent
32b35c9651
commit
cb722c5e89
@ -37,7 +37,7 @@ import typing
|
|||||||
import requests
|
import requests
|
||||||
|
|
||||||
from udsactor import types, tools
|
from udsactor import types, tools
|
||||||
from udsactor.version import VERSION
|
from udsactor.version import VERSION, BUILD
|
||||||
|
|
||||||
# Default public listen port
|
# Default public listen port
|
||||||
LISTEN_PORT = 43910
|
LISTEN_PORT = 43910
|
||||||
@ -110,7 +110,7 @@ class UDSApi: # pylint: disable=too-few-public-methods
|
|||||||
def _headers(self) -> typing.MutableMapping[str, str]:
|
def _headers(self) -> typing.MutableMapping[str, str]:
|
||||||
return {
|
return {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'User-Agent': 'UDS Actor v{}'.format(VERSION),
|
'User-Agent': 'UDS Actor v{}/{}'.format(VERSION, BUILD),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _api_url(self, method: str) -> str:
|
def _api_url(self, method: str) -> str:
|
||||||
@ -252,6 +252,7 @@ class UDSServerApi(UDSApi):
|
|||||||
'type': actor_type or types.MANAGED,
|
'type': actor_type or types.MANAGED,
|
||||||
'token': token,
|
'token': token,
|
||||||
'version': VERSION,
|
'version': VERSION,
|
||||||
|
'build': BUILD,
|
||||||
'id': [{'mac': i.mac, 'ip': i.ip} for i in interfaces],
|
'id': [{'mac': i.mac, 'ip': i.ip} for i in interfaces],
|
||||||
}
|
}
|
||||||
r = self._doPost('initialize', payload)
|
r = self._doPost('initialize', payload)
|
||||||
|
@ -1 +1,2 @@
|
|||||||
VERSION = '4.0.0'
|
VERSION = '4.0.0'
|
||||||
|
BUILD = '20220901'
|
Loading…
Reference in New Issue
Block a user