Commit bbacd58
committed
utils: UriUtils.validateUrl() shouldn't care if a host resolves to an IPv6 address
This is leftover code from a long time ago and this validation test has nu influence
on the end result on how a URL will be used afterwards.
We should support hosts pointing to an IPv6(-only) address out of the box.
For the code it does not matter if it's IPv4 or IPv6. This is the admin's choice.1 parent 9d51d03 commit bbacd58
File tree
2 files changed
+1
-9
lines changed- server/src/main/java/com/cloud/template
- utils/src/main/java/com/cloud/utils
2 files changed
+1
-9
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
261 | 260 | | |
262 | 261 | | |
263 | 262 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | 263 | | |
269 | 264 | | |
270 | 265 | | |
| |||
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | 283 | | |
292 | 284 | | |
293 | 285 | | |
| |||
0 commit comments