Normalize IPv4-mapped IPv4 addresses before checking PC/LAN/WAN type

This commit is contained in:
Cameron Gutman 2024-01-14 19:55:09 -06:00
commit 6b5a712506
2 changed files with 10 additions and 1 deletions

View file

@ -44,7 +44,7 @@ namespace net {
net_e
from_address(const std::string_view &view) {
auto addr = ip::make_address(view);
auto addr = normalize_address(ip::make_address(view));
if (addr.is_v6()) {
for (auto &range : pc_ips_v6) {