From 12a04f9459a713e5d29245bbf443d6c626c70b23 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sun, 3 Sep 2023 12:30:11 +0200 Subject: [PATCH] fix relogin test, pass accept route flag Signed-off-by: Kristoffer Dalby --- integration/tsic/tsic.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integration/tsic/tsic.go b/integration/tsic/tsic.go index 98f2516..8cd4069 100644 --- a/integration/tsic/tsic.go +++ b/integration/tsic/tsic.go @@ -316,6 +316,7 @@ func (t *TailscaleInContainer) Execute( options..., ) if err != nil { + // log.Printf("command issued: %s", strings.Join(command, " ")) // log.Printf("command stderr: %s\n", stderr) if stdout != "" { @@ -343,6 +344,7 @@ func (t *TailscaleInContainer) Login( "--login-server=" + loginServer, "--authkey=" + authKey, "--hostname=" + t.hostname, + "--accept-routes", } if t.withSSH { @@ -381,6 +383,7 @@ func (t *TailscaleInContainer) LoginWithURL( "up", "--login-server=" + loginServer, "--hostname=" + t.hostname, + "--accept-routes", } _, stderr, err := t.Execute(command)