Commit 795c4f4
committed
fix: capture OS.networkInterfaces() once in getDesktopAdvertisedEndpoints
Avoid calling OS.networkInterfaces() twice with an await in between,
which could yield inconsistent snapshots if network state changes.
A single local variable is now shared by both resolveDesktopServerExposure
and resolveTailscaleAdvertisedEndpoints.1 parent b585c3d commit 795c4f4
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
321 | | - | |
| 322 | + | |
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| |||
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
331 | | - | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
0 commit comments