Commit c90ddf7
committed
fix: read actual bound port from HttpServer before configuring Tailscale Serve
When config.port is 0 (OS-assigned), the real port is only known after
the HTTP server binds. The tailscaleServeLayer now reads the actual
bound port from HttpServer.address instead of using config.port directly,
preventing Tailscale Serve from being configured to proxy to port 0.1 parent 20edab7 commit c90ddf7
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
316 | 329 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | 330 | | |
324 | 331 | | |
325 | 332 | | |
| |||
0 commit comments