Commit 31bc14f6 authored by Niels Möller's avatar Niels Möller

(spawn_lshd): Use 127.0.0.1 instead

of localhost. FIX copied from main branch.

Rev: src/testsuite/functions.sh:1.8.2.3
parent 0b083e6f
......@@ -20,6 +20,10 @@ if [ -z "$PIDFILE" ] ; then
PIDFILE=`pwd`/lshd.$$.pid
fi
if [ -z "$INTERFACE" ] ; then
INTERFACE=127.0.0.1
fi
# if [ -z "$USERKEY" ] ; then
# USERKEY=$srcdir/key-1.private
# fi
......@@ -59,7 +63,10 @@ spawn_lshd () {
# Note that --daemon not only forks into the background, it also changes
# the cwd, uses syslog, etc.
../lshd -h $HOSTKEY --interface=localhost \
# echo ../lshd -h $HOSTKEY --interface=$INTERFACE \
# -p $PORT $LSHD_FLAGS --pid-file $PIDFILE --daemon "$@"
../lshd -h $HOSTKEY --interface=$INTERFACE \
-p $PORT $LSHD_FLAGS --pid-file $PIDFILE --daemon "$@"
# lshd may catch the ordinary TERM signal, leading to timing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment