瀏覽代碼

first fix attempt for mumble ip

UltimateByte 9 年之前
父節點
當前提交
c43ac02250
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lgsm/functions/info_config.sh

+ 1 - 1
lgsm/functions/info_config.sh

@@ -328,7 +328,7 @@ fn_info_config_mumble(){
 		queryport=${queryport:-"64738"}
 		servername="Mumble Port ${port}"
 
-		ip=$(cat "${servercfgfullpath}" | sed -e 's/^[ \t]*//g' -e '/^;/d' -e 's/voice_ip//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+		ip=$(cat "${servercfgfullpath}" | grep "host=" | awk -F "=" { print $2 }' )
 		ipsetinconfig=1
 		ipinconfigvar="voice_ip"
 	fi