mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复curl proxy
This commit is contained in:
+2
-2
@@ -64,7 +64,7 @@ check_nginx() {
|
||||
}
|
||||
|
||||
check_ql() {
|
||||
local api=$(curl -s "http://localhost:5700")
|
||||
local api=$(curl -s --noproxy "*" "http://localhost:5700")
|
||||
echo -e "\n=====> 检测面板\n\n$api\n"
|
||||
if [[ $api =~ "<div id=\"root\"></div>" ]]; then
|
||||
echo -e "=====> 面板服务启动正常\n"
|
||||
@@ -78,7 +78,7 @@ check_pm2() {
|
||||
pm2_log
|
||||
local currentTimeStamp=$(date +%s)
|
||||
local api=$(
|
||||
curl -s "http://localhost:5600/api/user?t=$currentTimeStamp" \
|
||||
curl -s --noproxy "*" "http://localhost:5600/api/user?t=$currentTimeStamp" \
|
||||
-H 'Accept: */*' \
|
||||
-H "Authorization: Bearer $token" \
|
||||
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36' \
|
||||
|
||||
Reference in New Issue
Block a user