Skip to content

Releases: JoshGlazebrook/socks

2.3.3

06 Nov 18:01
Compare
Choose a tag to compare
2.3.3

2.3.1

03 Feb 06:49
Compare
Choose a tag to compare
  • When creating connections, 'ipaddress' can now be a hostname (proxyserver1.com for example)
  • 'host' property added to proxy config, this is intended to replace 'ipaddress'. (ipaddress remains for backwards compatibility)

The following are equivalent:

Using 'ipaddress':

const options = {
  proxy: {
    ipaddress: '159.203.75.200', // ipv4 or ipv6 or hostname
    port: 1080,
    type: 5 // Proxy version (4 or 5)
  },

  command: 'connect', // SOCKS command (createConnection factory function only supports the connect command)

  destination: {
    host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5)
    port: 80
  }
};

Using 'host'

const options = {
  proxy: {
    host: '159.203.75.200', // ipv4 or ipv6 or hostname
    port: 1080,
    type: 5 // Proxy version (4 or 5)
  },

  command: 'connect', // SOCKS command (createConnection factory function only supports the connect command)

  destination: {
    host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5)
    port: 80
  }
};

Hostnames are now allowed:

const options = {
  proxy: {
    host: 'proxy1.proxyservers.com', // ipv4 or ipv6 or hostname
    port: 1080,
    type: 5 // Proxy version (4 or 5)
  },

  command: 'connect', // SOCKS command (createConnection factory function only supports the connect command)

  destination: {
    host: '192.30.253.113', // github.com (hostname lookups are supported with SOCKS v4a and 5)
    port: 80
  }
};

2.2.2

06 Nov 19:14
Compare
Choose a tag to compare

This release fixes an issue where socks would throw an error on Electron.

2.2.1

27 Jun 20:31
Compare
Choose a tag to compare
2.2.1

2.2.0

04 Apr 03:31
Compare
Choose a tag to compare

Changes

  • Internally we now reference the socket as a duplex stream. Since (Socket instanceof Duplex === true) this shouldn't break anything, but you can now pass in a Duplex as existing_socket (if you're using this for some reason).

2.1.6

18 Mar 06:06
Compare
Choose a tag to compare

This fixes an issue with the 'receivebuffer' import.

2.1.5

11 Mar 03:49
Compare
Choose a tag to compare

Fixes incoming data flow issues. It's highly recommended to upgrade to this version if you're using 2.x.x

2.1.2

30 Dec 04:24
Compare
Choose a tag to compare
Removed rogue console.log. Bumped to v2.1.2

2.1.1

28 Dec 01:45
Compare
Choose a tag to compare
Minor doc changes. v2.1.1

1.1.10

14 Jan 03:56
Compare
Choose a tag to compare

This release upgrades smart-buffer and ip.