diff --git a/pkg/tools/tools.go b/pkg/tools/tools.go index 423ded68..3a336f30 100644 --- a/pkg/tools/tools.go +++ b/pkg/tools/tools.go @@ -281,7 +281,7 @@ func GetPanelVersion(version string) (PanelInfo, error) { } if isChina { - output, err = shell.Execf(`curl -sSL "https://git.haozi.net/api/v4/projects/opensource%2Fpanel/releases/` + version + `"`) + output, err = shell.Execf(`curl -sSL "https://git.haozi.net/api/v4/projects/opensource%%2Fpanel/releases/` + version + `"`) } else { output, err = shell.Execf(`curl -sSL "https://api.github.com/repos/TheTNB/panel/releases/tags/` + version + `"`) }