diff --git a/README.md b/README.md index 8dda58a..a5f1699 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ - 国内加速: ```shell - curl -L https://raw.staticdn.net/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh + curl -L https://raw.sevencdn.com/naiba/nezha/master/script/install.sh -o nezha.sh && chmod +x nezha.sh sudo ./nezha.sh ``` diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 01e72bb..430c791 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -48,7 +48,7 @@ var ( updateCh = make(chan struct{}, 0) ) -const AGENT_UPGRADE = 55 +const agentUpgrade = 55 func doSelfUpdate() { defer func() { @@ -67,7 +67,7 @@ func doSelfUpdate() { log.Println("Current binary is the latest version", version) } else { log.Println("Successfully updated to version", latest.Version) - os.Exit(AGENT_UPGRADE) + os.Exit(agentUpgrade) } } diff --git a/script/install.sh b/script/install.sh index 4e13fc9..11376a6 100755 --- a/script/install.sh +++ b/script/install.sh @@ -83,7 +83,7 @@ pre_check() { ## server location if curl -s api.myip.la/json | grep -q 'China'; then - GITHUB_RAW_URL="raw.staticdn.net" + GITHUB_RAW_URL="raw.sevencdn.com" GITHUB_URL="hub.fastgit.org" fi }