자동 재접속

This commit is contained in:
2023-06-14 01:50:40 +09:00
parent 2e4b7811db
commit 96ee2a4627
3 changed files with 43 additions and 38 deletions

View File

@ -194,7 +194,7 @@ func (hc *houstonClient) prepareDeploy(name string, version string) (destPath st
func (hc *houstonClient) makeDownloadUrl(rel string) string {
out := rel
if !strings.HasPrefix(out, "http") {
tks := strings.SplitN(hc.httpAddr, "://", 2)
tks := strings.SplitN(hc.config.HttpAddress, "://", 2)
out = fmt.Sprintf("%s://%s", tks[0], path.Join(tks[1], rel))
}
return out