You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd10e19
Browse filesBrowse the repository at this point in the historyBrowse files
fix(tailscale): preserve parse errors for malformed JSON
Accept the fail-closed behavior for malformed `tailscale funnel status --json`: noisy valid JSON should parse, but malformed status output should not silently become “route absent”.
Source PR: #63321
Co-authored-by: Francisco Maestre Torreblanca <[email protected]>
it("hasTailscaleFunnelRouteForPort accepts noisy JSON status output",async()=>{
379
+
constexec=vi.fn().mockResolvedValue({
380
+
stdout:
381
+
'warning: stale state\n{"AllowFunnel":{"device.tailnet.ts.net:443":true},"Web":{"device.tailnet.ts.net:443":{"Handlers":{"/":{"Proxy":"http://127.0.0.1:18789"}}}}}\n',
0 commit comments