]> Cypherpunks.ru repositories - gocheese.git/blobdiff - gocheese.go
Disable /gpgupdate/ URL by default
[gocheese.git] / gocheese.go
index ff76c870c3183a6b81e462ee131caa9ad679934f..40f172bc9eedb50d5c337572d5da5036f760ac15 100644 (file)
@@ -701,7 +701,9 @@ func main() {
        }
        http.HandleFunc(*norefreshURLPath, handler)
        http.HandleFunc(*refreshURLPath, handler)
-       http.HandleFunc(*gpgUpdateURLPath, handler)
+       if *gpgUpdateURLPath != "" {
+               http.HandleFunc(*gpgUpdateURLPath, handler)
+       }
 
        needsRefreshPasswd := make(chan os.Signal, 0)
        needsShutdown := make(chan os.Signal, 0)