Skip to content

Commit

Permalink
Remove busted ts hostname parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Feb 14, 2025
1 parent 35328e2 commit 40e93f8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/hubproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,7 @@ func run() error {
return fmt.Errorf("failed to get status: %w", err)
}

// Get our hostname from Tailscale
hostname = status.Self.DNSName
logger.Info("Started Tailscale server",
"url", fmt.Sprintf("https://%s", hostname),
"tailnet", strings.Split(hostname, ".")[1],
)
logger.Info("Started Tailscale server", "dnsname", status.Self.DNSName)

srv = &http.Server{
Handler: mux,
Expand Down

0 comments on commit 40e93f8

Please sign in to comment.