修复判断cn位置

This commit is contained in:
starry
2025-08-09 18:07:24 +08:00
committed by GitHub
parent dde8decb3e
commit fa5dd27e52

View File

@@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Generated by nezhahq/scriptgen. DO NOT EDIT # blog.52013120.xyz
NZ_BASE_PATH="/opt/nezha" NZ_BASE_PATH="/opt/nezha"
NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard" NZ_DASHBOARD_PATH="${NZ_BASE_PATH}/dashboard"
@@ -78,6 +78,9 @@ pre_check() {
riscv64) os_arch="riscv64" ;; riscv64) os_arch="riscv64" ;;
esac esac
## 调用地理位置检查
geo_check
## China_IP 自动切换 ## China_IP 自动切换
if [ "${isCN:-false}" = true ]; then if [ "${isCN:-false}" = true ]; then
GITHUB_URL="https://gh-proxy.com/https://github.com" GITHUB_URL="https://gh-proxy.com/https://github.com"