Commit adc74bc
Fix auto-discovery false positives behind reverse proxies
probePort() used `mode: 'no-cors'` which only checked "is something
listening?" — any HTTP response (even a 502 from Tailscale serve)
counted as a live ECA server.
Now performs a real CORS-enabled health check and validates the JSON
response (`status: "ok"`), so reverse-proxy ports without an actual
ECA backend are correctly filtered out.
🤖 Generated with [eca](https://eca.dev)
Co-Authored-By: eca-agent <git@eca.dev>1 parent d2064c8 commit adc74bc
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments