Update tailscale to v1.102.1

This commit is contained in:
世界
2026-08-30 17:41:45 +08:00
parent 9bf39f85f9
commit e797c2d0ba
18 changed files with 282 additions and 210 deletions
+2 -1
View File
@@ -19,7 +19,7 @@ import (
aTLS "github.com/sagernet/sing/common/tls"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
"golang.org/x/net/http2/h2c" //nolint:staticcheck
"google.golang.org/grpc"
)
@@ -83,6 +83,7 @@ func (s *Service) Start(stage adapter.StartStage) error {
}
}
s.httpServer = &http.Server{
//nolint:staticcheck
Handler: h2c.NewHandler(newHTTPHandler(s.logger, s.grpcServer, s.options, s.dashboard), new(http2.Server)),
BaseContext: func(net.Listener) context.Context {
return s.ctx
+2 -1
View File
@@ -49,7 +49,7 @@ import (
"github.com/coder/websocket"
"github.com/go-chi/render"
"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
"golang.org/x/net/http2/h2c" //nolint:staticcheck
)
func Register(registry *boxService.Registry) {
@@ -217,6 +217,7 @@ func (d *Service) Start(stage adapter.StartStage) error {
}
tcpListener = aTLS.NewListener(tcpListener, d.tlsConfig)
httpServer := &http.Server{
//nolint:staticcheck
Handler: h2c.NewHandler(derpMux, &http2.Server{}),
}
go httpServer.Serve(tcpListener)