Commit f266b9e
committed
fix: separate advertised endpoints error state and handle malformed custom URLs gracefully
Bug 1: getAdvertisedEndpoints() error was writing to desktopServerExposureError,
sharing state with getServerExposureState(). Added a dedicated
desktopAdvertisedEndpointsError state so endpoint fetch failures don't
overwrite/corrupt the Network access error indicator.
Bug 2: A single malformed URL in T3CODE_DESKTOP_HTTPS_ENDPOINTS caused the
entire resolveDesktopCoreAdvertisedEndpoints to throw, discarding valid
loopback and LAN endpoints. Wrapped the custom URL loop body in try-catch
so bad entries are skipped with a warning.1 parent 660f950 commit f266b9e
2 files changed
Lines changed: 28 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
170 | 174 | | |
171 | 175 | | |
172 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
| |||
1218 | 1221 | | |
1219 | 1222 | | |
1220 | 1223 | | |
1221 | | - | |
| 1224 | + | |
1222 | 1225 | | |
1223 | 1226 | | |
1224 | 1227 | | |
1225 | 1228 | | |
1226 | 1229 | | |
| 1230 | + | |
1227 | 1231 | | |
1228 | 1232 | | |
1229 | 1233 | | |
| |||
1241 | 1245 | | |
1242 | 1246 | | |
1243 | 1247 | | |
| 1248 | + | |
1244 | 1249 | | |
1245 | 1250 | | |
1246 | 1251 | | |
| |||
1337 | 1342 | | |
1338 | 1343 | | |
1339 | 1344 | | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1340 | 1352 | | |
1341 | 1353 | | |
1342 | 1354 | | |
| |||
0 commit comments