Normalize IPv4-mapped IPv4 addresses before checking PC/LAN/WAN type
This commit is contained in:
parent
3d6e7f447a
commit
6b5a712506
2 changed files with 10 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue