forked from MoksS-zz/socks-v5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
maksim
committed
Dec 8, 2019
1 parent
8db4746
commit 8f0c73f
Showing
6 changed files
with
98 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const { createClient } = require("../index"); | ||
|
||
const setting = { | ||
host: "127.0.0.1", // your socks 5 verison server | ||
port: "1080", // port your server | ||
login: "foo", | ||
password: "bar" | ||
}; | ||
|
||
const server = createClient(setting); | ||
server.listen(2080); | ||
|
||
server.on("listening", () => { | ||
console.log( | ||
`server listening ${server.address().address}:${server.address().port}` | ||
); | ||
}); | ||
|
||
server.on("error", err => console.error(`Client Server Error ---> ${err}`)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters