diff options
author | Simon Rettberg | 2023-06-05 14:46:08 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-05 14:46:08 +0200 |
commit | 302f6e1560f6b3d83e011575345892d9b59924cf (patch) | |
tree | 30074ac41d9a8fd86fceca0e112ea9a8c0ab3a69 /core/modules | |
parent | [run-virt] Add optional debug spam to safesource and friends (diff) | |
download | mltk-302f6e1560f6b3d83e011575345892d9b59924cf.tar.gz mltk-302f6e1560f6b3d83e011575345892d9b59924cf.tar.xz mltk-302f6e1560f6b3d83e011575345892d9b59924cf.zip |
[remote-access] Look for proper port(s) when checking activity
Diffstat (limited to 'core/modules')
-rwxr-xr-x | core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver b/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver index 534e3c69..2a5ced0f 100755 --- a/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver +++ b/core/modules/remote-access/data/etc/X11/Xsetup.d/50-launch-vncserver @@ -94,7 +94,7 @@ iptables -t nat -D PREROUTING -p tcp --dport "$vnc_port" -j REDIRECT --to-ports 5901 while [ -d "/proc/${vncpid}" ]; do sleep 5 - if netstat -tn | awk 'BEGIN{ e=1 } { if ($4 ~ /:590[0123]$/) e=0 } END{ exit e }'; then + if netstat -tn | awk 'BEGIN{ e=1 } { if ($4 ~ /:('$vnc_port'|5901)$/) e=0 } END{ exit e }'; then gotone=true idle=0 else |