Remove "-" in "ipaddress" for the trackerd deamon.
parent
949964e2ec
commit
b3265025cf
|
@ -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
|
||||
|
|
Reference in New Issue