summaryrefslogtreecommitdiff
path: root/examples/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cgi')
-rw-r--r--examples/cgi/main.go4
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)
}