mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2026-01-22 08:59:33 +00:00
global-functions: $FetchUserAgentStr: user $CommitBrief
This commit is contained in:
parent
06fd89c55c
commit
582b0f411e
1 changed files with 2 additions and 5 deletions
|
|
@ -572,16 +572,13 @@
|
||||||
:set FetchUserAgentStr do={
|
:set FetchUserAgentStr do={
|
||||||
:local Caller [ :tostr $1 ];
|
:local Caller [ :tostr $1 ];
|
||||||
|
|
||||||
:global CommitId;
|
:global CommitBrief;
|
||||||
:global CommitInfo;
|
|
||||||
|
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
|
|
||||||
:local Resource [ /system/resource/get ];
|
:local Resource [ /system/resource/get ];
|
||||||
|
|
||||||
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . $Resource->"architecture-name" . \
|
:return ("User-Agent: Mikrotik/" . $Resource->"version" . " " . $Resource->"architecture-name" . \
|
||||||
" " . $Caller . "/Fetch (https://rsc.eworm.de/" . [ $IfThenElse ($CommitId != "unknown") \
|
" " . $Caller . "/Fetch (https://rsc.eworm.de/; " . [ $CommitBrief ] . ")");
|
||||||
("; " . $CommitInfo . "/" . [ :pick $CommitId 0 8 ]) ] . ")");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# check for existence of file, optionally with type
|
# check for existence of file, optionally with type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue