Router: introducing routing on client address.

This commit is contained in:
Axel Duch
2019-12-24 13:58:10 +00:00
parent 26ee4cb6c8
commit 8677bf8d41
6 changed files with 734 additions and 4 deletions

View File

@@ -1140,6 +1140,10 @@ nxt_inet_addr(u_char *buf, size_t length)
in_addr_t addr;
nxt_uint_t digit, octet, dots;
if (nxt_slow_path(*(buf + length - 1) == '.')) {
return INADDR_NONE;
}
addr = 0;
octet = 0;
dots = 0;