Skip to content

Commit 6411097

Browse files
h3o66dgibbs64
authored andcommitted
fix(valheim): disable queryport if public is set to 0 (#3374)
1 parent 1df5f0b commit 6411097

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lgsm/functions/info_parms.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@ fn_info_parms_ut(){
237237

238238
fn_info_parms_vh(){
239239
port=${port:-"0"}
240-
queryport=$((port + 1))
240+
if [ "${public}" != "0" ]; then
241+
queryport=$((port + 1))
242+
else
243+
querymode="1"
244+
fi
241245
gameworld=${gameworld:-"NOT SET"}
242246
serverpassword=${serverpassword:-"NOT SET"}
243247
servername=${servername:-"NOT SET"}

0 commit comments

Comments
 (0)