Commit 33c9d81c authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Do not use wildcard addresses for hostname generation

See: #2365
parent b4496ab6
Pipeline #2186 failed with stage
......@@ -1025,7 +1025,8 @@ ssize_t client_get_baseurl(client_t *client, listensocket_t *listensocket, char
if (!host && listensocket) {
listener = listensocket_get_listener(listensocket);
if (listener) {
host = listener->bind_address;
if (listener->bind_address && strncmp(listener->bind_address, "0.", 2) != 0 && strncmp(listener->bind_address, "::", 2) != 0)
host = listener->bind_address;
port = listener->port;
if (!client)
tlsmode = listener->tls;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment