]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: http-server-connection - Don't use the remote peer address to compose the...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 27 Feb 2019 01:34:08 +0000 (02:34 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 1 Mar 2019 13:47:22 +0000 (14:47 +0100)
It makes no sense.

src/lib-http/http-server-connection.c

index eb4ebc2bc8c9743b1f3018c42f9b3a1a96d97c0d..36afdcd96b73768f14c1d50fd37be8da360526ae 100644 (file)
@@ -175,11 +175,8 @@ static void http_server_connection_ready(struct http_server_connection *conn)
        i_zero(&base_url);
        if (set->default_host != NULL)
                base_url.host.name = set->default_host;
-       else if (conn->ip.family != 0)
-               base_url.host.ip = conn->ip;
        else
                base_url.host.name = my_hostname;
-       base_url.port = conn->port;
        base_url.have_ssl = conn->ssl;
 
        conn->http_parser = http_request_parser_init(