Supporting UNIX sockets in address matching.

This closes #645 issue on GitHub.

(Also moved a changelog line that was misplaced in a previous commit.)
This commit is contained in:
Alejandro Colomar
2022-02-28 12:12:30 +01:00
parent c1cea3c97d
commit 6e36584a2e
5 changed files with 35 additions and 7 deletions

View File

@@ -1818,6 +1818,13 @@ nxt_http_route_addr_pattern_match(nxt_http_route_addr_pattern_t *p,
break;
#endif
#if (NXT_HAVE_UNIX_DOMAIN)
case AF_UNIX:
match = (base->addr_family == AF_UNIX);
break;
#endif
default:
match = 0;
break;