From b3265025cf084a458a29cada8311da874d2322e6 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Mon, 8 Jun 2020 21:01:15 +0200 Subject: [PATCH] Remove "-" in "ipaddress" for the trackerd deamon. --- src/websocketd.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websocketd.cr b/src/websocketd.cr index 97b202d..641235a 100644 --- a/src/websocketd.cr +++ b/src/websocketd.cr @@ -177,7 +177,7 @@ def websocket_client_connection(client, context : InstanceStorage) # => JSON has to include these attributes: mtype, utype, payload # message = IPC::Message.new mtype, utype, payload remote_address = client.remote_address.address - message = IPC::Message.new 1, 1.to_u8, "{\"ip-address\": \"#{remote_address}\"}" + message = IPC::Message.new 1, 1.to_u8, "{\"ipaddress\": \"#{remote_address}\"}" serv = WrappedTCPFileDescriptor.new(fd: sfd, family: Socket::Family::INET) serv.send message.to_packet end