Fix IPv4 bind profiles not working

This commit is contained in:
Peter H. Jin 2022-09-10 23:19:21 -04:00
parent 58b5196793
commit 382c2928d9
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ static int get_idx_by_address(const struct sockaddr *addr, socklen_t len) {
return -1;
ipv4:
if ((ipv4_address & 0xffffc000U) == 0x7fa74000U) {
return 0x4000U | (ipv4_address & 0x4000U);
return 0x4000U | (ipv4_address & 0x3fffU);
} else if ((ipv4_address & 0xff000000U) == 0x7f000000U) {
return 41;
} else {