瀏覽代碼

Fix server validation

master
JustAnotherArchivist 3 年之前
父節點
當前提交
a9a4792854
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      gofile.io-dl

+ 1
- 1
gofile.io-dl 查看文件

@@ -17,7 +17,7 @@ else
fi fi


server="$(curl -s "https://apiv2.gofile.io/getServer?c=${code}" | python3 -c 'import json,sys; print(json.loads(sys.stdin.read().strip())["data"]["server"])')" server="$(curl -s "https://apiv2.gofile.io/getServer?c=${code}" | python3 -c 'import json,sys; print(json.loads(sys.stdin.read().strip())["data"]["server"])')"
if [[ "${server}" != srv-file?? ]]
if [[ ! "${server}" =~ ^srv-file[0-9]+$ ]]
then then
echo "Unexpected server value: ${server}" >&2 echo "Unexpected server value: ${server}" >&2
exit 1 exit 1


Loading…
取消
儲存