From 66a1b1f39a1e1d5499b548b36d18c8daa872d7da Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 28 Jan 2023 14:52:35 -0700 Subject: gopher support. Some of the contrib packages were originally built gemini-specific and had to be refactored into generic core functionality and thin protocol-specific wrappers for each of gemini and gopher. --- examples/cgi/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cgi') diff --git a/examples/cgi/main.go b/examples/cgi/main.go index 6036454..5c1b9a2 100644 --- a/examples/cgi/main.go +++ b/examples/cgi/main.go @@ -23,7 +23,7 @@ func main() { } // make use of a CGI request handler - cgiHandler := cgi.CGIDirectory("/cgi-bin", "./cgi-bin") + cgiHandler := cgi.GeminiCGIDirectory("/cgi-bin", "./cgi-bin") _, infoLog, _, errLog := logging.DefaultLoggers() @@ -35,7 +35,7 @@ func main() { defer stop() // run the server - server, err := gemini.NewServer(ctx, errLog, tlsconf, "tcp4", ":1965", handler) + server, err := gemini.NewServer(ctx, "localhost", "tcp4", ":1965", handler, errLog, tlsconf) if err != nil { log.Fatal(err) } -- cgit v1.2.3