ipn, controlclient: add control.New parameter

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
pull/335/head
David Crawshaw 5 years ago
parent f4c7eb8c44
commit d2b7cb1e45

@ -1031,7 +1031,7 @@ func newServer(t *testing.T) *server {
s.control.ServeHTTP(w, r)
}
}))
s.control, err = control.New(tmpdir, tmpdir, s.http.URL, true)
s.control, err = control.New(tmpdir, tmpdir, tmpdir, s.http.URL, true)
if err != nil {
t.Fatal(err)
}

@ -45,7 +45,7 @@ func TestClientsReusingKeys(t *testing.T) {
t.Fatal(err)
}
server, err = control.New(tmpdir, tmpdir, httpsrv.URL, true)
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
if err != nil {
t.Fatal(err)
}
@ -174,7 +174,7 @@ func TestClientsReusingOldKey(t *testing.T) {
if err != nil {
t.Fatal(err)
}
server, err = control.New(tmpdir, tmpdir, httpsrv.URL, true)
server, err = control.New(tmpdir, tmpdir, tmpdir, httpsrv.URL, true)
if err != nil {
t.Fatal(err)
}

@ -55,7 +55,7 @@ func TestIPN(t *testing.T) {
if err != nil {
t.Fatalf("create tempdir: %v\n", err)
}
ctl, err = control.New(tmpdir, tmpdir, serverURL, true)
ctl, err = control.New(tmpdir, tmpdir, tmpdir, serverURL, true)
if err != nil {
t.Fatalf("create control server: %v\n", ctl)
}

Loading…
Cancel
Save