mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
ipn: use NewPrefs in e2e_test
We weren't setting UsePacketFilter, so the synthetic ping packets used to establish a connection were never being sent. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
61d83f759b
commit
5562fae9f0
@ -166,16 +166,12 @@ func newNode(t *testing.T, prefix string, https *httptest.Server) testNode {
|
|||||||
Provider: "google",
|
Provider: "google",
|
||||||
LoginName: "test1@tailscale.com",
|
LoginName: "test1@tailscale.com",
|
||||||
}
|
}
|
||||||
|
prefs := NewPrefs()
|
||||||
|
prefs.ControlURL = https.URL
|
||||||
|
prefs.Persist = &c
|
||||||
n.Start(Options{
|
n.Start(Options{
|
||||||
FrontendLogID: prefix + "-f",
|
FrontendLogID: prefix + "-f",
|
||||||
Prefs: &Prefs{
|
Prefs: prefs,
|
||||||
ControlURL: https.URL,
|
|
||||||
RouteAll: true,
|
|
||||||
AllowSingleHosts: true,
|
|
||||||
CorpDNS: true,
|
|
||||||
WantRunning: true,
|
|
||||||
Persist: &c,
|
|
||||||
},
|
|
||||||
Notify: func(n Notify) {
|
Notify: func(n Notify) {
|
||||||
// Automatically visit auth URLs
|
// Automatically visit auth URLs
|
||||||
if n.BrowseToURL != nil {
|
if n.BrowseToURL != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user