Skip to content

Commit

Permalink
Support IPv6-only clients (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolveix committed Sep 17, 2023
1 parent 8e0c880 commit 9338cf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ENV AUTOPAUSE="true" \
PUID="1000" \
SERVERBEACONPORT="15000" \
SERVERGAMEPORT="7777" \
SERVERIP="0.0.0.0" \
SERVERIP="" \
SERVERQUERYPORT="15777" \
SKIPUPDATE="false" \
STEAMAPPID="1690800" \
Expand Down
6 changes: 5 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ printf "Setting autosave on disconnect to %s\\n" "${AUTOSAVEONDISCONNECT^}"
set_ini_prop "ServerSettings.ini" "\/Script\/FactoryGame\.FGServerSubsystem" "mAutoSaveOnDisconnect" "${AUTOSAVEONDISCONNECT^}"
## END ServerSettings.ini

if [ -n "$SERVERIP" ]; then
SERVERIP="-multihome \"$SERVERIP\""
fi

if ! [[ "${SKIPUPDATE,,}" == "true" ]]; then
if [[ "${STEAMBETA,,}" == "true" ]]; then
printf "Experimental flag is set. Experimental will be downloaded instead of Early Access.\\n"
Expand Down Expand Up @@ -152,4 +156,4 @@ fi

cd /config/gamefiles || exit 1

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

0 comments on commit 9338cf4

Please sign in to comment.