Przeglądaj źródła

ordering & matching changes

UltimateByte 9 lat temu
rodzic
commit
e370cdd4b4
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      lgsm/functions/info_config.sh

+ 2 - 4
lgsm/functions/info_config.sh

@@ -321,14 +321,12 @@ fn_info_config_mumble(){
 		servername="Mumble"
 	else
 		port=$(grep "port" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/port//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
-		queryport="${port}"
-
+		ip=$(grep "host=" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/host=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
 		# Not Set
 		port=${port:-"64738"}
 		queryport=${queryport:-"64738"}
 		servername="Mumble Port ${port}"
-
-		ip=$(grep "host=" "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/host=//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+		# Misc variables
 		ipsetinconfig=1
 		ipinconfigvar="voice_ip"
 	fi