socks: fix state handling.

This commit is contained in:
Christopher Jeffrey 2017-01-24 03:58:18 -08:00
parent 6c9dd723cd
commit 0de1302ca9
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -198,6 +198,9 @@ SOCKS.prototype.handleData = function handleData(data) {
case SOCKS.states.RESOLVE:
this.handleResolve(data);
break;
case SOCKS.states.PROXY_DONE:
case SOCKS.states.RESOLVE_DONE:
break;
default:
assert(false, 'Bad state.');
break;