aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-11-17 10:14:58 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2019-11-17 10:14:58 +0100
commite85a6b1c934d1070e40d11ad94b3ad4d79bdc9b2 (patch)
tree66613d0dac2581b117d17879af9c24b31d6f0af7 /cmd
parentRemove obsolete vars from libgemini (diff)
downloadgopherproxy-e85a6b1c934d1070e40d11ad94b3ad4d79bdc9b2.tar.gz
gopherproxy-e85a6b1c934d1070e40d11ad94b3ad4d79bdc9b2.tar.bz2
gopherproxy-e85a6b1c934d1070e40d11ad94b3ad4d79bdc9b2.zip
Report template errors, add support for start page
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gopherproxy/main.go3
1 files changed, 1 insertions, 2 deletions
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 (
13 bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to") 13 bind = flag.String("bind", "0.0.0.0:8000", "[int]:port to bind to")
14 robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file") 14 robotsfile = flag.String("robots-file", "robots.txt", "robots.txt file")
15 robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt") 15 robotsdebug = flag.Bool("robots-debug", false, "print output about ignored robots.txt")
16 uri = flag.String("uri", "gopher/floodgap.com", "<gopher|gemini>/<host>:[port] to proxy to")
17 vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips") 16 vipsconcurrency = flag.Int("vips-concurrency", 1, "Concurrency level of libvips")
18) 17)
19 18
@@ -21,5 +20,5 @@ func main() {
21 flag.Parse() 20 flag.Parse()
22 21
23 // Use a config struct 22 // Use a config struct
24 log.Fatal(gopherproxy.ListenAndServe(*bind, *robotsfile, *robotsdebug, *vipsconcurrency, *uri)) 23 log.Fatal(gopherproxy.ListenAndServe(*bind, *robotsfile, *robotsdebug, *vipsconcurrency))
25} 24}