Skip to content

Commit

Permalink
set "caddy" as hostinfo app
Browse files Browse the repository at this point in the history
Signed-off-by: Will Norris <will@tailscale.com>
  • Loading branch information
willnorris committed Jun 5, 2024
1 parent 70503b6 commit 694baa8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/caddyserver/certmagic"
"github.com/tailscale/tscert"
"go.uber.org/zap"
"tailscale.com/hostinfo"
"tailscale.com/tsnet"
)

Expand All @@ -33,6 +34,7 @@ func init() {
// Update the tscert dialer to dial the LocalAPI of the correct tsnet node,
// rather than just always dialing the local tailscaled.
tscert.TailscaledDialer = localAPIDialer
hostinfo.SetApp("caddy")
}

func getTCPListener(c context.Context, _ string, addr string, _ net.ListenConfig) (any, error) {
Expand Down

0 comments on commit 694baa8

Please sign in to comment.