Skip to content

Commit 0f7b8dc

Browse files
committed
fixup! feat: add endpoint to get listening ports in agent
1 parent 4fbc0ff commit 0f7b8dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

agent/agent.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,11 @@ func (a *agent) runTailnet(ctx context.Context, derpMap *tailcfg.DERPMap) {
273273
go func() {
274274
defer statisticsListener.Close()
275275
server := &http.Server{
276-
Handler: a.statisticsHandler(),
277-
ReadTimeout: 20 * time.Second,
278-
WriteTimeout: 20 * time.Second,
279-
ErrorLog: slog.Stdlib(ctx, a.logger.Named("statistics_http_server"), slog.LevelInfo),
276+
Handler: a.statisticsHandler(),
277+
ReadTimeout: 20 * time.Second,
278+
ReadHeaderTimeout: 20 * time.Second,
279+
WriteTimeout: 20 * time.Second,
280+
ErrorLog: slog.Stdlib(ctx, a.logger.Named("statistics_http_server"), slog.LevelInfo),
280281
}
281282
go func() {
282283
<-ctx.Done()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy