mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
ipn/ipnlocal: fix failing test (#10937)
Updates#cleanup Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
parent
6ee956333f
commit
75f1d3e7d7
@ -433,10 +433,11 @@ func(w http.ResponseWriter, r *http.Request) {
|
|||||||
URL: &url.URL{Path: tt.requestPath},
|
URL: &url.URL{Path: tt.requestPath},
|
||||||
TLS: &tls.ConnectionState{ServerName: "example.ts.net"},
|
TLS: &tls.ConnectionState{ServerName: "example.ts.net"},
|
||||||
}
|
}
|
||||||
req = req.WithContext(context.WithValue(req.Context(), serveHTTPContextKey{}, &serveHTTPContext{
|
req = req.WithContext(serveHTTPContextKey.WithValue(req.Context(),
|
||||||
DestPort: 443,
|
&serveHTTPContext{
|
||||||
SrcAddr: netip.MustParseAddrPort("1.2.3.4:1234"), // random src
|
DestPort: 443,
|
||||||
}))
|
SrcAddr: netip.MustParseAddrPort("1.2.3.4:1234"), // random src
|
||||||
|
}))
|
||||||
|
|
||||||
w := httptest.NewRecorder()
|
w := httptest.NewRecorder()
|
||||||
b.serveWebHandler(w, req)
|
b.serveWebHandler(w, req)
|
||||||
|
Loading…
Reference in New Issue
Block a user