mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-10 18:14:27 +02: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 variables not to be changed by user
|
||||||
:global GlobalFunctionsReady false;
|
: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 Identity [ /system/identity/get name ];
|
||||||
|
|
||||||
# global functions
|
# global functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue