fix relogin test, pass accept route flag

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby 2023-09-03 12:30:11 +02:00 committed by Kristoffer Dalby
parent 1766e6b5df
commit 12a04f9459
1 changed files with 3 additions and 0 deletions

View File

@ -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)