🚸 update cdn url

This commit is contained in:
naiba 2020-12-19 13:07:44 +08:00
parent 351526b56f
commit c694fc4259
3 changed files with 4 additions and 4 deletions

View File

@ -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
```

View File

@ -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)
}
}

View File

@ -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
}