Hi,
Unfortunately it doesn't work (real IP hidden). I dknow that I can write it to file but that is not what I like and this new option (output=user) will be great if
only I can get it to work. There is no explanation for it on Wiki at this time.
[admin@mtTest] > /tool fetch mode=http url="
http://api.ipify.org/" http-method=get output=user
status: finished
downloaded: 0KiBC-z pause]
total: 0KiB
duration: 1s
data: 1.2.3.4
result from variable print:
[admin@mtTest] /system script environment> print
# NAME VALUE
If I try to write to variable:
[admin@mtTest] > :global WANip [/tool fetch mode=http url="
http://api.ipify.org/" http-method=get output=user]
status: finished
downloaded: 0KiBC-z pause]
total: 0KiB
duration: 1s
data: 1.2.3.4
Still no result:
[admin@mtTest] /system script environment> print
# NAME VALUE
0 WANip