1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

relay: set address to "local" if not known

This commit is contained in:
Sébastien Helleu
2019-05-13 21:57:23 +02:00
parent 9ed89beaa0
commit ec5aca81e7
+2 -1
View File
@@ -1245,7 +1245,8 @@ relay_client_new (int sock, const char *address, struct t_relay_server *server)
#endif /* HAVE_GNUTLS */
new_client->websocket = 0;
new_client->http_headers = NULL;
new_client->address = strdup ((address) ? address : "?");
new_client->address = strdup ((address && address[0]) ?
address : "local");
new_client->real_ip = NULL;
new_client->status = RELAY_STATUS_CONNECTED;
new_client->protocol = server->protocol;