From c3468c04e4876648f7bfa77e8c45be2efaf8feec Mon Sep 17 00:00:00 2001 From: th33xitus Date: Sat, 30 Jan 2021 10:15:24 +0100 Subject: [PATCH] fix: bug when creating the local network ip range for moonraker.conf --- scripts/install_moonraker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_moonraker.sh b/scripts/install_moonraker.sh index 900b9b3..dc7e182 100755 --- a/scripts/install_moonraker.sh +++ b/scripts/install_moonraker.sh @@ -213,7 +213,7 @@ EOF create_single_moonraker_conf(){ HOSTNAME=$(hostname -I | cut -d" " -f1) - LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-3).0/24" + LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-2).0.0/16" /bin/sh -c "cat > $MOONRAKER_CONF_LOC/moonraker.conf" << MOONRAKERCONF [server] @@ -255,7 +255,7 @@ MOONRAKERCONF create_multi_moonraker_conf(){ HOSTNAME=$(hostname -I | cut -d" " -f1) - LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-3).0/16" + LOCAL_NETWORK="$(hostname -I | cut -d" " -f1 | cut -d"." -f1-2).0.0/16" /bin/sh -c "cat > $MOONRAKER_CONF_LOC/printer_$INSTANCE/moonraker.conf" << MOONRAKERCONF [server]