mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
lightningd: don't listen at all if no port number set.
When we support the Milan protocol, we'll use a default port. But for now, don't listen at all unless a port is specified. Fixes: #54 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -117,12 +117,9 @@ EOF
|
||||
cp $DIR1/config $DIR2/config
|
||||
[ $NUM_LIGHTNINGD = 2 ] || cp $DIR1/config $DIR3/config
|
||||
|
||||
if [ x"$RECONNECT" = xrestart ]; then
|
||||
# Make sure node2 & 3 restart on same port, by setting in config.
|
||||
# Find a free TCP port.
|
||||
echo port=`findport 4000 $VARIANT` >> $DIR2/config
|
||||
[ $NUM_LIGHTNINGD = 2 ] || echo port=`findport 4010 $VARIANT` >> $DIR3/config
|
||||
fi
|
||||
# Find a free TCP port.
|
||||
echo port=`findport 4000 $VARIANT` >> $DIR2/config
|
||||
[ $NUM_LIGHTNINGD = 2 ] || echo port=`findport 4010 $VARIANT` >> $DIR3/config
|
||||
}
|
||||
|
||||
# Use DIR REDIR REDIRERR GDBFLAG
|
||||
|
||||
Reference in New Issue
Block a user