From 93115f804220c31c2aa10f123560fb11135f06d8 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Tue, 26 Nov 2019 13:13:02 +0100 Subject: Add IPv6 support, general restructuring --- cmd/gopherproxy/main.go | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 cmd/gopherproxy/main.go (limited to 'cmd') diff --git a/cmd/gopherproxy/main.go b/cmd/gopherproxy/main.go deleted file mode 100644 index 6e6f48c..0000000 --- a/cmd/gopherproxy/main.go +++ /dev/null @@ -1,25 +0,0 @@ -package main - -import ( - "flag" - "log" - - "git.feuerfuchs.dev/Feuerfuchs/gopherproxy" -) - -var ( - // TODO: Allow config file and environment vars - // (opt -> env -> config -> default) - bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to") - startpagefile = flag.String("startpage-file", "startpage.txt", "Default page to display if no URL is specified") - robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file") - robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt") - vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips") -) - -func main() { - flag.Parse() - - // Use a config struct - log.Fatal(gopherproxy.ListenAndServe(*bind, *startpagefile, *robotsfile, *robotsdebug, *vipsconcurrency)) -} -- cgit v1.2.3-70-g09d2