diff --git a/main.go b/main.go index 5472c45..8014dc7 100644 --- a/main.go +++ b/main.go @@ -33,7 +33,7 @@ func main() { cacheDir = filepath.Join(gp[0], "pkg", "mod", "cache", "download") if _, err := os.Stat(cacheDir); os.IsNotExist(err) { fmt.Fprintf(os.Stdout, "goproxy: %s cache dir is not exist. %s\n", time.Now().Format("2006-01-02 15:04:05"), cacheDir) - os.MkdirAll(cacheDir, 0644) + os.MkdirAll(cacheDir, 0755) } http.Handle("/", mainHandler(http.FileServer(http.Dir(cacheDir)))) err := http.ListenAndServe(listen, nil)