├── conf
├── hosts.json
├── tasks.json
├── multi_account.conf
├── clients.json
├── server.pem
├── npc.conf
├── server.key
└── nps.conf
├── docs
├── .nojekyll
├── logo.png
├── discuss.md
├── windows_client_service_configuration.png
├── contribute.md
├── introduction.md
├── thanks.md
├── donate.md
├── _navbar.md
├── _coverpage.md
├── install.md
├── faq.md
├── npc_sdk.md
├── _sidebar.md
├── description.md
├── npc_extend.md
├── server_config.md
├── README.md
├── api.md
├── nps_use.md
├── run.md
├── index.html
├── bt.md
├── logo.svg
├── nps_extend.md
├── example.md
├── webapi.md
├── use.md
└── feature.md
├── .gitignore
├── image
├── qps.png
├── tcp.png
├── udp.png
├── web.png
├── bt
│ ├── bt1.jpg
│ ├── bt2.png
│ ├── bt3.png
│ └── bt_1.png
├── cpu1.png
├── cpu2.png
├── http.png
├── new
│ ├── ip.png
│ ├── cmd.png
│ ├── https.png
│ ├── payCode.png
│ ├── server.png
│ ├── protocol.png
│ └── tcp_limit.png
├── sock5.png
├── speed.png
├── web2.png
├── donation_wx.png
├── httpProxy.png
└── donation_zfb.png
├── web
├── static
│ ├── img
│ │ └── flag
│ │ │ ├── en-US.png
│ │ │ └── zh-CN.png
│ ├── webfonts
│ │ ├── fa-solid-900.eot
│ │ ├── fa-solid-900.ttf
│ │ ├── fa-solid-900.woff
│ │ └── fa-solid-900.woff2
│ ├── page
│ │ └── error.html
│ ├── css
│ │ ├── solid.min.css
│ │ ├── regular.min.css
│ │ └── toastr.min.css
│ └── js
│ │ └── toastr.min.js
├── views
│ ├── public
│ │ └── error.html
│ ├── global
│ │ └── index.html
│ ├── login
│ │ ├── register.html
│ │ └── index.html
│ └── index
│ │ └── help.html
├── controllers
│ ├── global.go
│ ├── auth.go
│ └── login.go
└── routers
│ └── router.go
├── .gitattributes
├── lib
├── version
│ └── version.go
├── daemon
│ ├── reload.go
│ └── daemon.go
├── sheap
│ └── heap.go
├── common
│ ├── pprof.go
│ ├── logs.go
│ ├── const.go
│ ├── pool.go
│ ├── run.go
│ └── netpackager.go
├── rate
│ ├── conn.go
│ └── rate.go
├── nps_mux
│ ├── sysGetsock_nowindows.go
│ ├── sysGetsock_windows.go
│ ├── map.go
│ ├── pool.go
│ ├── rate.go
│ └── netpackager.go
├── pmux
│ ├── pmux_test.go
│ ├── plistener.go
│ ├── pconn.go
│ └── pmux.go
├── conn
│ ├── snappy.go
│ ├── listener.go
│ └── link.go
├── file
│ ├── sort.go
│ └── obj.go
├── config
│ └── config_test.go
├── crypt
│ ├── tls.go
│ └── crypt.go
├── cache
│ └── lru.go
└── goroutine
│ └── pool.go
├── server
├── proxy
│ ├── transport_windows.go
│ ├── transport.go
│ ├── p2p.go
│ ├── udp.go
│ ├── tcp.go
│ └── base.go
├── connection
│ └── connection.go
├── test
│ └── test.go
└── tool
│ └── utils.go
├── Dockerfile.npc
├── Dockerfile.nps
├── client
├── register.go
└── health.go
├── .github
├── ISSUE_TEMPLATE
│ ├── feature_request.md
│ └── bug_report.md
└── workflows
│ ├── android.yml
│ ├── docker.yml
│ └── pkg.yml
├── gui
└── npc
│ ├── AndroidManifest.xml
│ └── npc.go
├── cmd
└── npc
│ └── sdk.go
├── .travis.yml
├── Makefile
├── README_zh.md
└── go.mod
/conf/hosts.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/conf/tasks.json:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/.nojekyll:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | nps
3 | npc
4 |
--------------------------------------------------------------------------------
/conf/multi_account.conf:
--------------------------------------------------------------------------------
1 | # key -> user | value -> pwd
2 | npc=npc.pwd
--------------------------------------------------------------------------------
/docs/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/docs/logo.png
--------------------------------------------------------------------------------
/image/qps.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/qps.png
--------------------------------------------------------------------------------
/image/tcp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/tcp.png
--------------------------------------------------------------------------------
/image/udp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/udp.png
--------------------------------------------------------------------------------
/image/web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/web.png
--------------------------------------------------------------------------------
/image/bt/bt1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/bt/bt1.jpg
--------------------------------------------------------------------------------
/image/bt/bt2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/bt/bt2.png
--------------------------------------------------------------------------------
/image/bt/bt3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/bt/bt3.png
--------------------------------------------------------------------------------
/image/cpu1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/cpu1.png
--------------------------------------------------------------------------------
/image/cpu2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/cpu2.png
--------------------------------------------------------------------------------
/image/http.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/http.png
--------------------------------------------------------------------------------
/image/new/ip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/ip.png
--------------------------------------------------------------------------------
/image/sock5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/sock5.png
--------------------------------------------------------------------------------
/image/speed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/speed.png
--------------------------------------------------------------------------------
/image/web2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/web2.png
--------------------------------------------------------------------------------
/image/bt/bt_1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/bt/bt_1.png
--------------------------------------------------------------------------------
/image/new/cmd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/cmd.png
--------------------------------------------------------------------------------
/image/donation_wx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/donation_wx.png
--------------------------------------------------------------------------------
/image/httpProxy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/httpProxy.png
--------------------------------------------------------------------------------
/image/new/https.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/https.png
--------------------------------------------------------------------------------
/image/new/payCode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/payCode.png
--------------------------------------------------------------------------------
/image/new/server.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/server.png
--------------------------------------------------------------------------------
/image/donation_zfb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/donation_zfb.png
--------------------------------------------------------------------------------
/image/new/protocol.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/protocol.png
--------------------------------------------------------------------------------
/image/new/tcp_limit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/image/new/tcp_limit.png
--------------------------------------------------------------------------------
/docs/discuss.md:
--------------------------------------------------------------------------------
1 | # 交流群
2 |
3 | 
4 |
--------------------------------------------------------------------------------
/web/static/img/flag/en-US.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/img/flag/en-US.png
--------------------------------------------------------------------------------
/web/static/img/flag/zh-CN.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/img/flag/zh-CN.png
--------------------------------------------------------------------------------
/web/static/webfonts/fa-solid-900.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/webfonts/fa-solid-900.eot
--------------------------------------------------------------------------------
/web/static/webfonts/fa-solid-900.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/webfonts/fa-solid-900.ttf
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=golang
2 | *.css linguist-language=golang
3 | *.html linguist-language=golang
4 |
--------------------------------------------------------------------------------
/web/static/webfonts/fa-solid-900.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/webfonts/fa-solid-900.woff
--------------------------------------------------------------------------------
/web/static/webfonts/fa-solid-900.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/web/static/webfonts/fa-solid-900.woff2
--------------------------------------------------------------------------------
/docs/windows_client_service_configuration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/yisier/nps/HEAD/docs/windows_client_service_configuration.png
--------------------------------------------------------------------------------
/docs/contribute.md:
--------------------------------------------------------------------------------
1 | # 贡献
2 |
3 | - 如果遇到bug可以直接提交至dev分支
4 | - 使用遇到问题可以通过issues反馈
5 | - 项目处于开发阶段,还有很多待完善的地方,如果可以贡献代码,请提交 PR 至 dev 分支
6 | - 如果有新的功能特性反馈,可以通过issues或者qq群反馈
7 |
--------------------------------------------------------------------------------
/docs/introduction.md:
--------------------------------------------------------------------------------
1 | 
2 | # 介绍
3 |
4 | 可在网页上配置和管理各个tcp、udp隧道、内网站点代理,http、https解析等,功能强大,操作方便。
5 |
--------------------------------------------------------------------------------
/lib/version/version.go:
--------------------------------------------------------------------------------
1 | package version
2 |
3 | const VERSION = "0.26.28"
4 |
5 | // Compulsory minimum version, Minimum downward compatibility to this version
6 | func GetVersion() string {
7 | return "0.26.0"
8 | }
9 |
--------------------------------------------------------------------------------
/server/proxy/transport_windows.go:
--------------------------------------------------------------------------------
1 | // +build windows
2 |
3 | package proxy
4 |
5 | import (
6 | "ehang.io/nps/lib/conn"
7 | )
8 |
9 | func HandleTrans(c *conn.Conn, s *TunnelModeServer) error {
10 | return nil
11 | }
12 |
--------------------------------------------------------------------------------
/docs/thanks.md:
--------------------------------------------------------------------------------
1 | Thanks [jetbrains](https://www.jetbrains.com/?from=nps) for providing development tools for nps
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/web/static/page/error.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |