Skip to content

Commit

Permalink
fix(kf2): repair port parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dgibbs64 committed Dec 3, 2023
1 parent 38079ba commit f28a4e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lgsm/modules/info_game.sh
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ fn_info_game_kf() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "adminpassword" "AdminPassword"
fn_info_game_ini "httpenabled" "bEnabled"
fn_info_game_ini "httppassword" "httppasswordword"
fn_info_game_ini "httppassword" "AdminPassword"
fn_info_game_ini "httpport" "ListenPort"
fn_info_game_ini "httpuser" "AdminName"
fn_info_game_ini "lanport" "LANServerPort"
Expand Down Expand Up @@ -525,11 +525,11 @@ fn_info_game_kf2() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "adminpassword" "AdminPassword"
fn_info_game_ini "httpport" "ListenPort" "${servercfgdir}/KFWeb.ini"
fn_info_game_ini "port" "Port"
fn_info_game_ini "port" "Port" "${servercfgdir}/LinuxServer-KFEngine.ini"
fn_info_game_ini "servername" "ServerName"
fn_info_game_ini "serverpassword" "GamePassword"
fn_info_game_ini "httpenabled" "bEnabled"
fn_info_game_ini "httppassword" "httppasswordword"
fn_info_game_ini "httpenabled" "bEnabled" "${servercfgdir}/KFWeb.ini"
fn_info_game_ini "httppassword" "AdminPassword"
fi
adminpassword="${adminpassword:-"NOT SET"}"
defaultmap="${defaultmap:-"NOT SET"}"
Expand Down Expand Up @@ -1751,7 +1751,7 @@ fn_info_game_ro() {
if [ -f "${servercfgfullpath}" ]; then
fn_info_game_ini "adminpassword" "AdminPassword"
fn_info_game_ini "httpenabled" "bEnabled"
fn_info_game_ini "httppassword" "httppasswordword"
fn_info_game_ini "httppassword" "AdminPassword"
fn_info_game_ini "httpport" "ListenPort"
fn_info_game_ini "httpuser" "AdminName"
fn_info_game_ini "lanport" "LANServerPort"
Expand Down

0 comments on commit f28a4e5

Please sign in to comment.