mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: add architecture in user-agent string
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user