Home

tailroute @main - refs - log -
-
https://git.jolheiser.com/tailroute.git
Router for tailnet and funnel across tailscale
tree log patch
fix: add logger to server Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQPVGwq2VnrRFHcl2PSpglg3UNwZYoR4Wd5EQMQx9mSIup+hRyER0adLC/LRye7EeVJ 1Wl06Y8l2ZhuaPLWWVTAM= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
3 months ago
1 changed files, 4 additions(+), 0 deletions(-)
M tailroute.go -> tailroute.go
diff --git a/tailroute.go b/tailroute.go
index af83e5332d615ea1bd54846f0939eca8ea2c8a97..98ed6f7df00cfdc912cb6fa6c1201549496d3790 100644
--- a/tailroute.go
+++ b/tailroute.go
@@ -12,6 +12,7 @@ 	"time"
 
 	"tailscale.com/ipn"
 	"tailscale.com/tsnet"
+	"tailscale.com/types/logger"
 )
 
 type handlerCtxKey int
@@ -25,6 +26,7 @@
 type Router struct {
 	Funnel  http.Handler
 	Tailnet http.Handler
+	Logger  logger.Logf
 }
 
 func (router Router) serve(ln net.Listener) error {
@@ -84,6 +86,8 @@ 	}
 	s := &tsnet.Server{
 		Hostname: hostname,
 	"errors"
+	"context"
+	"net/http"
 	"context"
 	}
 	if err := s.Start(); err != nil {