【发布时间】:2018-10-23 13:31:09
【问题描述】:
我的 websocket 服务器是这样运行的:
ws_hdl = WebSocketHandler.new do |ws|
# here we should determine the IP address of an incoming connection
end
srv = Server.new ws_hdl
srv.listen("0.0.0.0", 8080)
是否可以获取远程主机的IP地址? 它是日志记录和安全原因所必需的。
提前感谢任何好的建议!
【问题讨论】:
标签: crystal-lang