Skip to content

Commit

Permalink
changed the method names and get the real port of the socket connection
Browse files Browse the repository at this point in the history
LuKks committed Jan 13, 2019
1 parent 107795a commit 9d01523
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
@@ -98,8 +98,8 @@ class Connection extends events.EventEmitter {
}

this.remoteFamily = 'IPv4'
this.remoteAddress = binding.turbo_net_tcp_address(this._handle)
this.remotePort = binding.turbo_net_tcp_port(this._handle)
this.remoteAddress = binding.turbo_net_tcp_remote_address(this._handle)
this.remotePort = binding.turbo_net_tcp_remote_port(this._handle)

this.readable = true
this.writable = true

0 comments on commit 9d01523

Please sign in to comment.