From 354f9790fb3706a229b9eb4b1d02d578d4297bdc Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 3 Jan 2023 16:56:38 +0100 Subject: debvm-waitssh: force ipv4 On salsa, localhost resolves to ::1 and ssh-keyscan skips checking 127.0.0.1 there. --- debvm-waitssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debvm-waitssh b/debvm-waitssh index 843963d..557ffad 100755 --- a/debvm-waitssh +++ b/debvm-waitssh @@ -14,7 +14,7 @@ B [B<-t> I] [I:]I =head1 DESCRIPTION B can be used to wait for a virtual machine with exposed ssh port to be reachable on that port. -If no hostname is given, B is assumed. +If no hostname is given, B<127.0.0.1> is assumed. =head1 OPTIONS @@ -124,7 +124,7 @@ case "$1" in PORT=${1##*:} ;; *) - HOST=localhost + HOST=127.0.0.1 PORT=$1 ;; esac -- cgit v1.2.3