Skip to content

Commit a831ccd

Browse files
author
刘河
committed
version
1 parent dd65e32 commit a831ccd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
# nps
33
![](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)
45

56
nps是一款轻量级、高性能、功能强大的**内网穿透**代理服务器。目前支持**tcp、udp流量转发**,可支持任何**tcp、udp**上层协议(访问内网网站、本地支付接口调试、ssh访问、远程桌面,内网dns解析等等……),此外还**支持内网http代理、内网socks5代理****p2p等**,并带有功能强大的web管理端。
67

@@ -327,6 +328,8 @@ p2p_port|p2p模式开启的udp端口
327328

328329
在配置文件中将https_proxy_port设置为443或者其他你想配置的端口,和在web中对应域名编辑中设置对应的证书路径,将`https_just_proxy`设置为false,然后就和http代理一样了
329330

331+
**此外:** 可以在`nps.conf`中设置一个默认的https配置,当遇到未在web中设置https证书的域名解析时,将自动使用默认证书,另还有一种情况就是对于某些请求的clienthello不携带sni扩展信息,nps也将自动使用默认证书
332+
330333

331334
**方式二:** 在内网对应服务器上设置https
332335

cmd/npc/npc.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import (
66
"github.com/cnlh/nps/lib/common"
77
"github.com/cnlh/nps/lib/daemon"
88
"github.com/cnlh/nps/lib/version"
9-
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
109
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
1110
"os"
12-
"path/filepath"
1311
"strings"
1412
"time"
1513
)
@@ -61,7 +59,7 @@ func main() {
6159
}
6260
} else {
6361
if *configPath == "" {
64-
*configPath = filepath.Join(beego.AppPath, "conf", "npc.conf")
62+
*configPath = "npc.conf"
6563
}
6664
client.StartFromFile(*configPath)
6765
}

lib/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package version
22

3-
const VERSION = "0.21.0"
3+
const VERSION = "0.21.1"
44

55
// Compulsory minimum version, Minimum downward compatibility to this version
66
func GetVersion() string {

0 commit comments

Comments
 (0)