Update remote-ip.vbs

This commit is contained in:
Gregory Lirent 2024-08-02 21:55:56 +03:00
parent 0859928964
commit 25af70f24f
Signed by: lirent
GPG Key ID: F616BE337EFFEE77

View File

@ -3,4 +3,8 @@ Set o = CreateObject("MSXML2.XMLHTTP")
o.open "GET", "https://2ip.io", False o.open "GET", "https://2ip.io", False
o.SetRequestHeader "User-Agent", "curl/8.8.0" o.SetRequestHeader "User-Agent", "curl/8.8.0"
o.send o.send
echo Trim(o.responseText)
ip=Trim(o.responseText)
echo ip
if Len(ip)=0 then echo vbNewLine