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

This commit is contained in:
Metalcape authored and GitHub committed 2023-03-12 13:40:35 -05:00
1 parent e43669d792
commit e217ac503e
8 files changed
+19 -8

No files matched your search

+5
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 &