Skip to content

Commit

Permalink
added remoteHost to info callback variable upon successful socks5 con…
Browse files Browse the repository at this point in the history
…nection (#69)
  • Loading branch information
endreszabo committed Apr 18, 2021
1 parent 7f3bd8b commit e6f18eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/socksclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ class SocksClient extends EventEmitter implements SocksClient {
if (SocksCommand[this.options.command] === SocksCommand.connect) {
this.setState(SocksClientState.Established);
this.removeInternalSocketHandlers();
this.emit('established', {socket: this.socket});
this.emit('established', {remoteHost, socket: this.socket});
} else if (SocksCommand[this.options.command] === SocksCommand.bind) {
/* If using BIND, the Socks client is now in BoundWaitingForConnection state.
This means that the remote proxy server is waiting for a remote connection to the bound port. */
Expand Down

0 comments on commit e6f18eb

Please sign in to comment.