mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: add architecture in user-agent string
This commit is contained in:
parent
1c61547284
commit
76f65c13d7
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,12 @@
|
|||
|
||||
# global variables not to be changed by user
|
||||
:global GlobalFunctionsReady false;
|
||||
:global FetchUserAgent ("User-Agent: Mikrotik/" . [ /system/resource/get version ] . " Fetch");
|
||||
:global FetchUserAgent;
|
||||
{
|
||||
:local Resource [ /system/resource/get ];
|
||||
:set FetchUserAgent ("User-Agent: Mikrotik/" . $Resource->"version" . \
|
||||
" " . $Resource->"architecture-name" . " Fetch");
|
||||
}
|
||||
:global Identity [ /system/identity/get name ];
|
||||
|
||||
# global functions
|
||||
|
|
Loading…
Reference in a new issue