From 9d53fc171abdef64c88ce42f5192e456c6eacc7c Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 23 Jan 2021 09:02:48 -0700 Subject: [PATCH] bind to localhost for file serving by default --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 08727a6..e46653f 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func init() { flag.StringVar(&acmeListen, "alisten", ":80", "Listen for acme requests on") flag.StringVar(&cacheDir, "cache", fmt.Sprintf("%s/.cache", dir), "Directory in which to store ACME certificates.") flag.StringVar(&davDir, "davdir", dir, "Directory to serve over WebDAV.") - flag.StringVar(&listen, "http", ":8080", "Listen on") + flag.StringVar(&listen, "http", "127.0.0.1:8080", "Listen on") flag.StringVar(&passPath, "htpass", fmt.Sprintf("%s/.htpasswd", dir), "Path to .htpasswd file..") flag.StringVar(&davPath, "davpath", "/dav/", "Directory containing files to serve over WebDAV.") flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).")