File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# nps
3
3
![ ] ( https://img.shields.io/github/stars/cnlh/nps.svg ) ![ ] ( https://img.shields.io/github/forks/cnlh/nps.svg )
4
+ [ ![ Gitter] ( https://badges.gitter.im/cnlh-nps/community.svg )] ( https://gitter.im/cnlh-nps/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge )
4
5
5
6
nps是一款轻量级、高性能、功能强大的** 内网穿透** 代理服务器。目前支持** tcp、udp流量转发** ,可支持任何** tcp、udp** 上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析等等……),此外还** 支持内网http代理、内网socks5代理** 、** p2p等** ,并带有功能强大的web管理端。
6
7
@@ -327,6 +328,8 @@ p2p_port|p2p模式开启的udp端口
327
328
328
329
在配置文件中将https_proxy_port设置为443或者其他你想配置的端口,和在web中对应域名编辑中设置对应的证书路径,将` https_just_proxy ` 设置为false,然后就和http代理一样了
329
330
331
+ ** 此外:** 可以在` nps.conf ` 中设置一个默认的https配置,当遇到未在web中设置https证书的域名解析时,将自动使用默认证书,另还有一种情况就是对于某些请求的clienthello不携带sni扩展信息,nps也将自动使用默认证书
332
+
330
333
331
334
** 方式二:** 在内网对应服务器上设置https
332
335
Original file line number Diff line number Diff line change @@ -6,10 +6,8 @@ import (
6
6
"github.com/cnlh/nps/lib/common"
7
7
"github.com/cnlh/nps/lib/daemon"
8
8
"github.com/cnlh/nps/lib/version"
9
- "github.com/cnlh/nps/vender/github.com/astaxie/beego"
10
9
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
11
10
"os"
12
- "path/filepath"
13
11
"strings"
14
12
"time"
15
13
)
@@ -61,7 +59,7 @@ func main() {
61
59
}
62
60
} else {
63
61
if * configPath == "" {
64
- * configPath = filepath . Join ( beego . AppPath , "conf" , " npc.conf")
62
+ * configPath = " npc.conf"
65
63
}
66
64
client .StartFromFile (* configPath )
67
65
}
Original file line number Diff line number Diff line change 1
1
package version
2
2
3
- const VERSION = "0.21.0 "
3
+ const VERSION = "0.21.1 "
4
4
5
5
// Compulsory minimum version, Minimum downward compatibility to this version
6
6
func GetVersion () string {
You can’t perform that action at this time.
0 commit comments