From 00dccf0d5d4e9896e3bfb7a08abfa83cc2533775 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 25 Jan 2017 02:01:45 -0800 Subject: [PATCH] socks: minor. --- lib/net/socks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/net/socks.js b/lib/net/socks.js index 6f789f95..3cb9129a 100644 --- a/lib/net/socks.js +++ b/lib/net/socks.js @@ -212,7 +212,7 @@ SOCKS.prototype.handleClose = function handleClose() { var state; if (this.state !== this.target) { - state = SOCKS.statesByVal[this.target]; + state = SOCKS.statesByVal[this.state]; this.error('SOCKS request destroyed (state=%s).', state); return; }