Skip to content

Commit

Permalink
golink: use new serveHandler with tsnet
Browse files Browse the repository at this point in the history
In 46ed42f, I mistakenly only attached the serveHandler to the dev
listener, but not tsnet.

Fixes #91

Signed-off-by: Will Norris <[email protected]>
  • Loading branch information
willnorris committed Nov 15, 2023
1 parent 46ed42f commit 7db43e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion golink.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func Run() error {
}

log.Printf("Serving http://%s/ ...", *hostname)
if err := http.Serve(l80, nil); err != nil {
if err := http.Serve(l80, serveHandler()); err != nil {
return err
}
return nil
Expand Down

0 comments on commit 7db43e2

Please sign in to comment.