mattcg / socks5-https-client

SOCKS v5 HTTPS client implementation in JavaScript for Node.js.
186 stars 28 forks source link

Sock5 Error #15

Closed Vincvn closed 8 years ago

Vincvn commented 8 years ago
    } else if (!authMethods.includes(data[1])) {
                            ^

TypeError: authMethods.includes is not a function Thanks

mattcg commented 8 years ago

What version of node are you running? Array.prototype.includes is part of ES6 and is only present in newer versions of node.

Vincvn commented 8 years ago

Hi my nodejs version is: v.4.2.6

mattcg commented 8 years ago

You're two versions behind the current stable version. Could you upgrade to that?

Vincvn commented 8 years ago

I upgraded to lastest LTS and its running normal. Thank you for help Sorry my english bad

mattcg commented 8 years ago

Your English is good! And thank you for using this client.