Server: Passing correct client addr for webirc usage
authorDarren <darren@darrenwhitlen.com>
Fri, 2 Nov 2012 14:52:53 +0000 (14:52 +0000)
committerDarren <darren@darrenwhitlen.com>
Fri, 2 Nov 2012 14:52:53 +0000 (14:52 +0000)
server/client.js

index b98d764b4ce30d6d9ce9d98d47c37afd2a9ff55e..0a530bca77ca354c70ccd9fbc333674cbb533b96 100755 (executable)
@@ -113,7 +113,7 @@ function kiwiCommand(command, callback) {
                case 'connect':
                        if (command.hostname && command.port && command.nick) {
                                var con = new IrcConnection(command.hostname, command.port, command.ssl,
-                                       command.nick, {hostname: this.websocket.handshake.revdns, address: this.websocket.handshake.address.address},
+                                       command.nick, {hostname: this.websocket.handshake.revdns, address: this.websocket.handshake.real_address},
                                        command.password);
 
                                var con_num = this.next_connection++;