Releases: JoshGlazebrook/socks
Releases · JoshGlazebrook/socks
2.3.3
2.3.3
2.3.1
- 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
This release fixes an issue where socks would throw an error on Electron.
2.2.1
2.2.1
2.2.0
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
This fixes an issue with the 'receivebuffer' import.
2.1.5
Fixes incoming data flow issues. It's highly recommended to upgrade to this version if you're using 2.x.x
2.1.2
Removed rogue console.log. Bumped to v2.1.2
2.1.1
Minor doc changes. v2.1.1
1.1.10
This release upgrades smart-buffer and ip.