diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-05-13 21:57:23 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-05-13 21:57:23 +0200 |
commit | ec5aca81e76e1d3cdfcc4f35b31c030a82e2a9ff (patch) | |
tree | 827445d5012b19a4d5436d0dd30400421e9c532d /src/plugins/relay/relay-client.c | |
parent | 9ed89beaa01c4d6bdea176fd1b939d57845c77c8 (diff) | |
download | weechat-ec5aca81e76e1d3cdfcc4f35b31c030a82e2a9ff.zip |
relay: set address to "local" if not known
Diffstat (limited to 'src/plugins/relay/relay-client.c')
-rw-r--r-- | src/plugins/relay/relay-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/relay/relay-client.c b/src/plugins/relay/relay-client.c index 19203f64a..8ecc8777e 100644 --- a/src/plugins/relay/relay-client.c +++ b/src/plugins/relay/relay-client.c @@ -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; |