Fix socket.io issue; fix ACP announcements

This commit is contained in:
calzoneman 2014-08-24 13:18:15 -05:00
parent ec9ee1d37f
commit 9be993a679
2 changed files with 4 additions and 6 deletions

View file

@ -126,10 +126,10 @@ function addTypecheckedFunctions(sock) {
* Called after a connection is accepted
*/
function handleConnection(sock) {
var ip = sock.request.connection.remoteAddress;
var ip = sock.client.conn.remoteAddress;
if (!ip) {
sock.emit("kick", {
reason: "Your IP address could not be determined from the socket connection. See https://github.com/Automattic/socket.io/issues/1387#issuecomment-48425088 for details"
reason: "Your IP address could not be determined from the socket connection. See https://github.com/Automattic/socket.io/issues/1737 for details"
});
return;
}