Use modified knockd to set a cooldown on port 19132 (#2003)

This commit is contained in:
Metalcape
2023-03-12 19:40:35 +01:00
committed by GitHub
parent e43669d792
commit e217ac503e
8 changed files with 19 additions and 8 deletions

View File

@@ -84,4 +84,9 @@ elif [[ -z "$MAX_TICK_TIME" ]] ; then
export MAX_TICK_TIME
fi
# seq_cooldown cannot be larger than AUTOPAUSE_TIMEOUT_KN, otherwise the server may
# become paused while knockd is still ignoring packets, preventing players from joining.
let COOLDOWN=$AUTOPAUSE_TIMEOUT_KN/2
sed -i "s/\(seq_cooldown *= *\).*/\1$COOLDOWN/" /tmp/knockd-config.cfg
/auto/autopause-daemon.sh &