This commit is contained in:
z0rc 2024-10-05 15:11:25 +00:00
parent d141ebdb43
commit c5385d3133

View File

@ -1,5 +1,5 @@
vncroulette() {
host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
local host="$(curl -sS "https://computernewb.com/vncresolver/api/scans/vnc/random" | jq -r '.["ip","port"]' | tr '\n' ':' | sed 's/:$//')"
echo "Connecting to ${host}..."
vncviewer "${host}"
}