Browse Source

httpport

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
021aee150b
  1. 4
      lgsm/functions/info_config.sh
  2. 26
      lgsm/functions/info_messages.sh
  3. 6
      lgsm/functions/info_parms.sh

4
lgsm/functions/info_config.sh

@ -1551,7 +1551,7 @@ fn_info_config_squad(){
maxplayers=${maxplayers:-"0"}
}
fn_info_config_stationeers(){
fn_info_config_st(){
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
serverpassword="${unavailable}"
@ -1883,7 +1883,7 @@ elif [ "${shortname}" == "mta" ]; then
elif [ "${shortname}" == "squad" ]; then
fn_info_config_squad
elif [ "${shortname}" == "st" ]; then
fn_info_config_stationeers
fn_info_config_st
elif [ "${shortname}" == "mh" ]; then
fn_info_config_mordhau
elif [ "${shortname}" == "pvr" ];then

26
lgsm/functions/info_messages.sh

@ -1245,13 +1245,13 @@ fn_info_message_st(){
fn_port "header"
fn_port "Game" port udp
fn_port "Query" queryport udp
fn_port "Web Admin" webadminport tcp
fn_port "HTTP" httpport tcp
} | column -s $'\t' -t
echo -e ""
echo -e "${lightgreen}${gamename} Web Admin${default}"
fn_messages_separator
{
echo -e "${lightblue}Web Admin url:\t${default}http://${webadminip}:${webadminport}"
echo -e "${lightblue}Web Admin url:\t${default}http://${webadminip}:${httpport}"
} | column -s $'\t' -t
}
@ -1396,26 +1396,6 @@ fn_info_message_unreal(){
} | column -s $'\t' -t
}
fn_info_message_unreal3(){
fn_info_message_password_strip
{
fn_port "header"
echo -e "> Game\t${port}\tudp"
echo -e "> Query\t${queryport}\tudp"
echo -e "> Web Admin\t${webadminport}\ttcp\tListenPort=${webadminport}"
} | column -s $'\t' -t
echo -e ""
echo -e "${lightgreen}${servername} Web Admin${default}"
fn_messages_separator
{
echo -e "${lightblue}Web Admin enabled:\t${default}${webadminenabled}"
echo -e "${lightblue}Web Admin url:\t${default}http://${webadminip}:${webadminport}"
echo -e "${lightblue}Web Admin username:\t${default}${webadminuser}"
echo -e "${lightblue}Web Admin password:\t${default}${webadminpass}"
} | column -s $'\t' -t
}
fn_info_message_unt(){
{
fn_port "header"
@ -1704,8 +1684,6 @@ fn_info_message_select_engine(){
fn_info_message_spark
elif [ "${engine}" == "unreal" ]; then
fn_info_message_unreal
elif [ "${engine}" == "unreal3" ]; then
fn_info_message_unreal3
else
fn_print_error_nl "Unable to detect server engine."
fi

6
lgsm/functions/info_parms.sh

@ -192,10 +192,10 @@ fn_info_parms_spark(){
#mods=${mods:-"NOT SET"}
}
fn_info_parms_stationeers(){
fn_info_parms_st(){
port=${port:-"0"}
queryport=${queryport:-"0"}
webadminport=${port:-"0"}
httpport=${port:-"0"}
worldtype=${worldtype:-"NOT SET"}
autosaveinterval=${autosaveinterval:-"0"}
clearinterval=${clearinterval:-"0"}
@ -320,7 +320,7 @@ elif [ "${shortname}" == "rust" ]; then
elif [ "${shortname}" == "samp" ]; then
fn_info_parms_samp
elif [ "${shortname}" == "st" ]; then
fn_info_parms_stationeers
fn_info_parms_st
elif [ "${shortname}" == "rw" ]; then
fn_info_parms_risingworld
elif [ "${shortname}" == "sof2" ]; then

Loading…
Cancel
Save