Mercurial > hg > nginx
comparison src/core/ngx_inet.c @ 4642:c1eb924fb6fe
Removed historical and now redundant syntax pre-checks in ngx_parse_url().
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 21 May 2012 10:55:10 +0000 |
parents | 3d51fa5a110d |
children | 215857d53cbe |
comparison
equal
deleted
inserted
replaced
4641:045bb3ef3ffc | 4642:c1eb924fb6fe |
---|---|
520 | 520 |
521 if (ngx_strncasecmp(p, (u_char *) "unix:", 5) == 0) { | 521 if (ngx_strncasecmp(p, (u_char *) "unix:", 5) == 0) { |
522 return ngx_parse_unix_domain_url(pool, u); | 522 return ngx_parse_unix_domain_url(pool, u); |
523 } | 523 } |
524 | 524 |
525 if ((p[0] == ':' || p[0] == '/') && !u->listen) { | |
526 u->err = "invalid host"; | |
527 return NGX_ERROR; | |
528 } | |
529 | |
530 if (p[0] == '[') { | 525 if (p[0] == '[') { |
531 return ngx_parse_inet6_url(pool, u); | 526 return ngx_parse_inet6_url(pool, u); |
532 } | 527 } |
533 | 528 |
534 return ngx_parse_inet_url(pool, u); | 529 return ngx_parse_inet_url(pool, u); |