Skip to content

Commit 537f68e

Browse files
committed
Add temporary workaround for new port argument
1 parent e28aa3c commit 537f68e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ if ! [[ "$SERVERMESSAGINGPORT" =~ $NUMCHECK ]]; then
1515
fi
1616
printf "Setting messaging port to %s\\n" "$SERVERMESSAGINGPORT"
1717

18+
# Temporary code to fix the new messaging port flag forcing IPv4 binding. We only specify it if we're not using 8888
19+
SERVERMESSAGINGPORTARG=""
20+
if [ "$SERVERMESSAGINGPORT" != "8888" ]; then
21+
SERVERMESSAGINGPORTARG="-ReliablePort=\"$SERVERMESSAGINGPORT\""
22+
fi
23+
1824
# Engine.ini settings
1925
if ! [[ "$AUTOSAVENUM" =~ $NUMCHECK ]]; then
2026
printf "Invalid autosave number given: %s\\n" "$AUTOSAVENUM"
@@ -148,7 +154,7 @@ fi
148154
cd /config/gamefiles || exit 1
149155

150156
chmod +x FactoryServer.sh || true
151-
./FactoryServer.sh -Port="$SERVERGAMEPORT" -ReliablePort="$SERVERMESSAGINGPORT" "${ini_args[@]}" "$@" &
157+
./FactoryServer.sh -Port="$SERVERGAMEPORT" "$SERVERMESSAGINGPORTARG" "${ini_args[@]}" "$@" &
152158

153159
sleep 2
154160
satisfactory_pid=$(ps --ppid ${!} o pid=)

0 commit comments

Comments
 (0)