Skip to content

Commit 8fe7b7a

Browse files
committed
fix public serving
1 parent d9d5b98 commit 8fe7b7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

golink.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,15 @@ out:
267267
return nil
268268
}
269269

270-
func servePublic(port int) {
270+
func servePublic(port int, handler http.Handler) {
271271
l, err := net.Listen("tcp", fmt.Sprintf(":%d", port))
272272
if err != nil {
273273
sentry.CaptureException(err)
274274
log.Fatal(err)
275275
}
276276
defer l.Close()
277-
err = http.Serve(l, nil)
277+
log.Printf("Serving on public port %d", port)
278+
err = http.Serve(l, handler)
278279
if err != nil {
279280
sentry.CaptureException(err)
280281
log.Fatal(err)

0 commit comments

Comments
 (0)