summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_route.c
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-02-28 12:12:30 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-26 16:24:33 +0200
commit6e36584a2e9bad0e7c4f96d68c527992deadc650 (patch)
tree927317d737b55d0bdec616d01cd39e10cbcb6f32 /src/nxt_http_route.c
parentc1cea3c97d5dfc260a54cab67b7dc1637a3deb59 (diff)
downloadunit-6e36584a2e9bad0e7c4f96d68c527992deadc650.tar.gz
unit-6e36584a2e9bad0e7c4f96d68c527992deadc650.tar.bz2
Supporting UNIX sockets in address matching.
This closes #645 issue on GitHub. (Also moved a changelog line that was misplaced in a previous commit.)
Diffstat (limited to 'src/nxt_http_route.c')
-rw-r--r--src/nxt_http_route.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c
index e00c37fe..cdc9077f 100644
--- a/src/nxt_http_route.c
+++ b/src/nxt_http_route.c
@@ -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;