From e85a6b1c934d1070e40d11ad94b3ad4d79bdc9b2 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sun, 17 Nov 2019 10:14:58 +0100 Subject: Report template errors, add support for start page --- cmd/gopherproxy/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go index 66248ac..e84e978 100644 --- a/cmd/gopherproxy/main.go +++ b/cmd/gopherproxy/main.go @@ -13,7 +13,6 @@ var ( bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to") robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file") robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt") - uri = flag.String("uri", "gopher/floodgap.com", "/:[port] to proxy to") vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips") ) @@ -21,5 +20,5 @@ func main() { flag.Parse() // Use a config struct - log.Fatal(gopherproxy.ListenAndServe(*bind, *robotsfile, *robotsdebug, *vipsconcurrency, *uri)) + log.Fatal(gopherproxy.ListenAndServe(*bind, *robotsfile, *robotsdebug, *vipsconcurrency)) } -- cgit v1.2.3-70-g09d2