summaryrefslogtreecommitdiff
path: root/examples/inspectls/main.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-01-28 14:52:35 -0700
committertjpcc <tjp@ctrl-c.club>2023-01-28 15:01:41 -0700
commit66a1b1f39a1e1d5499b548b36d18c8daa872d7da (patch)
tree96471dbd5486ede1a908790ac23e0c55b226dfad /examples/inspectls/main.go
parenta27b879accb191b6a6c6e76a6251ed751967f73a (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/inspectls/main.go')
-rw-r--r--examples/inspectls/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/inspectls/main.go b/examples/inspectls/main.go
index 5022888..ce82f43 100644
--- a/examples/inspectls/main.go
+++ b/examples/inspectls/main.go
@@ -33,7 +33,7 @@ func main() {
handler := logging.LogRequests(infoLog)(inspectHandler)
// run the server
- server, err := gemini.NewServer(context.Background(), errLog, tlsconf, "tcp4", ":1965", handler)
+ server, err := gemini.NewServer(context.Background(), "localhost", "tcp4", ":1965", handler, errLog, tlsconf)
if err != nil {
log.Fatal(err)
}