Commit 5b83a0c
committed
fix(http-server): use loopback instead of 0.0.0.0/[::] in URLs
Host values `0.0.0.0` (IPv4) and `::` (IPv6), which mean "any host",
are not supported by certain browsers and platforms, e.g. Safari on
MacOS or Windows.
This commit fixes the `url` getter to convert these "any host" values
into a loopback address (`127.0.0.1` for IPV4 or `::1` for IPv6).1 parent 650b387 commit 5b83a0c
File tree
2 files changed
+17
-0
lines changed- packages/http-server
- src
- test/integration
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
180 | 194 | | |
181 | 195 | | |
182 | 196 | | |
| |||
0 commit comments