diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-01-28 14:52:35 -0700 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-01-28 15:01:41 -0700 |
commit | 66a1b1f39a1e1d5499b548b36d18c8daa872d7da (patch) | |
tree | 96471dbd5486ede1a908790ac23e0c55b226dfad /examples/cgi/main.go | |
parent | a27b879accb191b6a6c6e76a6251ed751967f73a (diff) |
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.
Diffstat (limited to 'examples/cgi/main.go')
-rw-r--r-- | examples/cgi/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |