Compare commits

..

2 Commits

Author SHA1 Message Date
a6ed524808 fix
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-02 04:07:36 +03:00
68204a8140 tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-01-01 23:34:40 +03:00
2 changed files with 6 additions and 5 deletions

View File

@ -66,6 +66,7 @@ declare -A HANDLERS
HANDLERS[tcp]=check-port HANDLERS[tcp]=check-port
HANDLERS[udp]=check-port HANDLERS[udp]=check-port
# XXX this seems to be broken...
check-port(){ check-port(){
local udp= local udp=
if [[ "${1:0:3}" == "udp" ]] ; then if [[ "${1:0:3}" == "udp" ]] ; then
@ -81,7 +82,7 @@ check-port(){
local res=$(timeout $TIMEOUT nc -vz${udp} $target $port 2>&1) local res=$(timeout $TIMEOUT nc -vz${udp} $target $port 2>&1)
if [[ "$res" =~ .*open$ ]] ; then if ! [[ $res =~ .*open$ ]] ; then
echo ERROR echo ERROR
else else
echo OK echo OK

View File

@ -14,10 +14,10 @@ entryPoints:
address: ':22' address: ':22'
ssh2: ssh2:
address: ':23' address: ':23'
openvpn: #openvpn:
address: ':1194/udp' # address: ':1194/udp'
openvpn2: #openvpn2:
address: ':5555/udp' # address: ':5555/udp'
wireguard: wireguard:
address: ':51820/udp' address: ':51820/udp'
wireguard2: wireguard2: