From 7141e2ed70aaa8e2350a28007c18f0a2c51b266c Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 11 Aug 2021 17:12:39 +0100 Subject: [PATCH] Fix hostname passed to join command --- integration_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration_test.go b/integration_test.go index a4caf87..e1e4240 100644 --- a/integration_test.go +++ b/integration_test.go @@ -177,7 +177,7 @@ func (s *IntegrationSuite) SetUpSuite(c *check.C) { fmt.Printf("Joining tailscale containers to headscale at %s\n", headscaleEndpoint) for hostname, tailscale := range tailscales { - command := []string{"tailscale", "up", "-login-server", headscaleEndpoint, "--authkey", strings.TrimSuffix(authKey, "\n"), "--hostname", headscaleEndpoint} + command := []string{"tailscale", "up", "-login-server", headscaleEndpoint, "--authkey", strings.TrimSuffix(authKey, "\n"), "--hostname", hostname} fmt.Println("Join command:", command) fmt.Printf("Running join command for %s\n", hostname)