Skip to content

Commit 9338cf4

Browse files
committed
Support IPv6-only clients (wolveix#202)
1 parent 8e0c880 commit 9338cf4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ENV AUTOPAUSE="true" \
3232
PUID="1000" \
3333
SERVERBEACONPORT="15000" \
3434
SERVERGAMEPORT="7777" \
35-
SERVERIP="0.0.0.0" \
35+
SERVERIP="" \
3636
SERVERQUERYPORT="15777" \
3737
SKIPUPDATE="false" \
3838
STEAMAPPID="1690800" \

run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ printf "Setting autosave on disconnect to %s\\n" "${AUTOSAVEONDISCONNECT^}"
9393
set_ini_prop "ServerSettings.ini" "\/Script\/FactoryGame\.FGServerSubsystem" "mAutoSaveOnDisconnect" "${AUTOSAVEONDISCONNECT^}"
9494
## END ServerSettings.ini
9595

96+
if [ -n "$SERVERIP" ]; then
97+
SERVERIP="-multihome \"$SERVERIP\""
98+
fi
99+
96100
if ! [[ "${SKIPUPDATE,,}" == "true" ]]; then
97101
if [[ "${STEAMBETA,,}" == "true" ]]; then
98102
printf "Experimental flag is set. Experimental will be downloaded instead of Early Access.\\n"
@@ -152,4 +156,4 @@ fi
152156

153157
cd /config/gamefiles || exit 1
154158

155-
exec ./FactoryServer.sh -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" -multihome="$SERVERIP" "$@"
159+
exec ./FactoryServer.sh -log -NoSteamClient -unattended ?listen -Port="$SERVERGAMEPORT" -BeaconPort="$SERVERBEACONPORT" -ServerQueryPort="$SERVERQUERYPORT" $SERVERIP "$@"

0 commit comments

Comments
 (0)