]> Cypherpunks.ru repositories - gocheese.git/blobdiff - main.go
My apenwarr/redo path differs
[gocheese.git] / main.go
diff --git a/main.go b/main.go
index 772d3bf08681beade12b3065d65dce3fba993b67..da276a6ceaae5e50ace659a3ef664b8f0b22bcab 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,7 +1,7 @@
 /*
 GoCheese -- Python private package repository and caching proxy
-Copyright (C) 2019-2021 Sergey Matveev <stargrave@stargrave.org>
-              2019-2021 Elena Balakhonova <balakhonova_e@riseup.net>
+Copyright (C) 2019-2022 Sergey Matveev <stargrave@stargrave.org>
+              2019-2022 Elena Balakhonova <balakhonova_e@riseup.net>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -44,7 +44,7 @@ import (
 )
 
 const (
-       Version   = "3.2.0"
+       Version   = "3.6.0"
        UserAgent = "GoCheese/" + Version
 )
 
@@ -212,6 +212,9 @@ func main() {
                log.Fatalln("Both -tls-cert and -tls-key are required")
        }
 
+       UmaskCur = syscall.Umask(0)
+       syscall.Umask(UmaskCur)
+
        var err error
        PyPIURLParsed, err = url.Parse(*PyPIURL)
        if err != nil {
@@ -288,6 +291,7 @@ func main() {
                "root:", Root,
                "bind:", *Bind,
                "pypi:", *PyPIURL,
+               "json:", *JSONURL,
        )
        if *TLSCert == "" {
                err = server.Serve(ln)