socks 2.8.3 → 2.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
@@ -346,7 +346,7 @@ udpSocket.on('message', (message, rinfo) => {
|
|
346
346
|
*/
|
347
347
|
});
|
348
348
|
|
349
|
-
let client = new SocksClient(
|
349
|
+
let client = new SocksClient(options);
|
350
350
|
|
351
351
|
// When the UDP relay is established, this event is fired and includes the UDP relay port to send data to on the proxy server.
|
352
352
|
client.on('established', info => {
|
@@ -361,7 +361,7 @@ client.on('established', info => {
|
|
361
361
|
// Send 'hello' to 165.227.108.231:4444
|
362
362
|
const packet = SocksClient.createUDPFrame({
|
363
363
|
remoteHost: { host: '165.227.108.231', port: 4444 },
|
364
|
-
data: Buffer.from(
|
364
|
+
data: Buffer.from('hello')
|
365
365
|
});
|
366
366
|
udpSocket.send(packet, info.remoteHost.port, info.remoteHost.host);
|
367
367
|
});
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "socks",
|
3
3
|
"private": false,
|
4
|
-
"version": "2.8.
|
4
|
+
"version": "2.8.4",
|
5
5
|
"description": "Fully featured SOCKS proxy client supporting SOCKSv4, SOCKSv4a, and SOCKSv5. Includes Bind and Associate functionality.",
|
6
6
|
"main": "build/index.js",
|
7
7
|
"typings": "typings/index.d.ts",
|