mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-06 19:38:34 -05:00
[PR #7162] [MERGED] Fix Host/IP resolving #22089
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7162
Author: @BlackDex
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/29/2026
Merged by: @dani-garcia
Base:
main← Head:fix-host-and-icon-checks📝 Commits (1)
d13bca8Fix Host/IP resolving📊 Changes
5 files changed (+315 additions, -86 deletions)
View changed files
📝
.pre-commit-config.yaml(+1 -1)📝
.typos.toml(+2 -0)📝
src/api/icons.rs(+29 -62)📝
src/http_client.rs(+266 -16)📝
src/util.rs(+17 -7)📄 Description
IPv4 addresses can also be in decimal or hex formats. These were not checked during the Global IP check, and could bypass it.
We now convert everything to the right format before running this check and it will catch these formats.
Also updated the
is_global()function to match Rust's still unstable version. And updated the Image Magic checks to be more precise and filter out any possible broken or invalid formats.While at it, also added several checks to ensure these special formatted IPv4 addresses are still blocked and punycode domains are also correctly resolved.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.