Obsolete
/
ipcd
Archived
3
0
Fork 0

Remove "-" in "ipaddress" for the trackerd deamon.

master
Karchnu 2020-06-08 21:01:15 +02:00
parent 949964e2ec
commit b3265025cf
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ def websocket_client_connection(client, context : InstanceStorage)
# => JSON has to include these attributes: mtype, utype, payload # => JSON has to include these attributes: mtype, utype, payload
# message = IPC::Message.new mtype, utype, payload # message = IPC::Message.new mtype, utype, payload
remote_address = client.remote_address.address 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 = WrappedTCPFileDescriptor.new(fd: sfd, family: Socket::Family::INET)
serv.send message.to_packet serv.send message.to_packet
end end