Commit d7150a2e authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Get "NameVirtualHost *" option working in Apache 2.0


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87393 13f79535-47bb-0310-9956-ffa450edef68
parent df780688
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Changes with Apache 2.0b1
  *) Get "NameVirtualHost *" working in 2.0.  [Ryan Bloom]

  *) Return HTTP_RANGE_NOT_SATISFIABLE if the every range requested starts
     after the end of the response. [Ryan Bloom]

+4 −1
Original line number Diff line number Diff line
@@ -219,7 +219,10 @@ static const char *get_addresses(apr_pool_t *p, const char *w_,
        port = default_port;
    }

    if (strcasecmp(host, "_default_") == 0
    if (strcmp(host, "*") == 0) {
        rv = apr_getaddrinfo(&my_addr, NULL, APR_INET, port, 0, p);
        my_addr->sa.sin.sin_addr.s_addr = htonl(INADDR_ANY);
    } else if (strcasecmp(host, "_default_") == 0
        || strcmp(host, "255.255.255.255") == 0) {
        rv = apr_getaddrinfo(&my_addr, NULL, APR_INET, port, 0, p);
        ap_assert(rv == APR_SUCCESS); /* must be bug or out of storage */