• Stars
    star
    535
  • Rank 82,940 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

hpts(http-proxy-to-socks) is a nodejs client to convert socks proxy into http proxy

http-proxy-to-socks

build

简介

hpts(http-proxy-to-socks) is a nodejs tool to convert SOCKS proxy into http proxy.

Many clients support setting up http proxy to speed up network requests and for sometimes only SOCKS proxy is available to you. SOCKS proxy supports TCP so that it's possible to convert those requests from http proxy into SOCKS protocol. In this way, you can still keep the goodness provided by your SOCKS proxy(e.g. encryption).

Setup

npm install -g http-proxy-to-socks

Make sure your nodejs version is greater than 4.

Usage

hpts -s 127.0.0.1:1080 -p 8080

This will start a process listening on 8080 as a http proxy. It will convert http requests into socks requests and send them to port 1080. Please make sure your socks service is available at the corresponding port.

Other options:

Options:
  -V, --version          output the version number
  -s, --socks [socks]    specify your socks proxy host, default: 127.0.0.1:1080
  -p, --port [port]      specify the listening port of http proxy server, default: 8080
  -l, --host [host]      specify the listening host of http proxy server, default: 127.0.0.1
  -c, --config [config]  read configs from file in json format
  --level [level]        log level, vals: info, error
  -h, --help             output usage information

You can specify a json config file with -c:

{
  "socks": "127.0.0.1:1080",
  "port": 8080
}

CONTRIBUTE

Please add more tests for corresponding features when you send a PR:

npm run test

License

MIT

More Repositories

1

youdao-collins-chrome-extension

A chrome extension to help you search english words in collins dict.
JavaScript
147
star
2

encryptsocks

Encrypt your socks transmission.
JavaScript
141
star
3

cheerio-without-node-native

Cheerio build that excludes node native modules so that you can use it in platforms like React Native and chrome extensions.
JavaScript
130
star
4

react-yue

Render the views of Yue with React.
JavaScript
126
star
5

typescript-handbook-zh

TypeScript手册中文版。
HTML
94
star
6

nysocks

Nysocks binds kcp and libuv to provide an aggressive tcp tunnel in nodejs.
C++
81
star
7

wasm-opencc

OpenCC compiled by Emscripten so that you can run it on browsers or nodejs without compiling.
C++
53
star
8

frozen_east_text_detection.pb

27
star
9

htmlparser2-without-node-native

htmlparser2 build that excludes node native modules so that you can use it in platforms like React Native.
JavaScript
24
star
10

kcp-node

WIP
JavaScript
9
star
11

react-native-leetcode-reader

LeetCode iOS app built with React Native.
JavaScript
7
star
12

oyyd-blog

A blog for oyyd.net.
JavaScript
6
star
13

redux-proptypes-pack

Use React.PropTypes in your redux apps.
JavaScript
4
star
14

rs-object

Node.js bindings to Rust [object](https://github.com/gimli-rs/object).
Rust
3
star
15

do-space-client

A desktop client of Digital Ocean Space by the lib of Yue.
JavaScript
3
star
16

hoppscotch-tauri

Hoppscotch and a rust proxy server bundled with tauri.
Rust
3
star
17

eslint-plugin-graphql-schema

GraphQL schema specific linting rules for ESLint
JavaScript
3
star
18

os-proxy-socks

WIP
JavaScript
1
star
19

redux-thunk-dispatch

Record redux thunk actions and dispatch them when your server side code restarts.
JavaScript
1
star
20

addon_abort_example

C++
1
star
21

redux-thunk-dispatch-todosmvc

An example of redux-thunk-dispatch with react-hot-loader
JavaScript
1
star
22

switch-proxy

switch-proxy(sp) simplifies switching proxies of your git, docker, npm, etc.
JavaScript
1
star