Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Start Test",
"program": "${workspaceFolder}/test/test.js",
"cwd": "${workspaceFolder}"
}
]
}
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ SOCKS protocol version 5 server and client implementations for node.js
Requirements
============

* [node.js](http://nodejs.org/) -- v0.10.0 or newer
* [node.js](http://nodejs.org/) -- v10.x or newer


Install
=======

npm install socksv5
npm install @outtacontrol/socks


Examples
Expand All @@ -22,7 +22,7 @@ Examples
* Server with no authentication and allowing all connections:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var srv = socks.createServer(function(info, accept, deny) {
accept();
Expand All @@ -37,7 +37,7 @@ srv.useAuth(socks.auth.None());
* Server with username/password authentication and allowing all (authenticated) connections:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var srv = socks.createServer(function(info, accept, deny) {
accept();
Expand All @@ -54,7 +54,7 @@ srv.useAuth(socks.auth.UserPassword(function(user, password, cb) {
* Server with no authentication and redirecting all connections to localhost:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var srv = socks.createServer(function(info, accept, deny) {
info.dstAddr = 'localhost';
Expand All @@ -70,7 +70,7 @@ srv.useAuth(socks.auth.None());
* Server with no authentication and denying all connections not made to port 80:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var srv = socks.createServer(function(info, accept, deny) {
if (info.dstPort === 80)
Expand All @@ -88,7 +88,7 @@ srv.useAuth(socks.auth.None());
* Server with no authentication, intercepting all connections to port 80, and passing through all others:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var srv = socks.createServer(function(info, accept, deny) {
if (info.dstPort === 80) {
Expand Down Expand Up @@ -117,7 +117,7 @@ srv.useAuth(socks.auth.None());
* Client with no authentication:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');

var client = socks.connect({
host: 'google.com',
Expand All @@ -135,7 +135,7 @@ var client = socks.connect({
* HTTP(s) client requests using a SOCKS Agent:

```javascript
var socks = require('socksv5');
var socks = require('@outtacontrol/socks');
var http = require('http');

var socksConfig = {
Expand Down
Loading