Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
刘河 committed Apr 1, 2019
1 parent dd65e32 commit a831ccd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# nps
![](https://img.shields.io/github/stars/cnlh/nps.svg) ![](https://img.shields.io/github/forks/cnlh/nps.svg)
[![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)

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

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

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

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


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

Expand Down
4 changes: 1 addition & 3 deletions cmd/npc/npc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import (
"github.com/cnlh/nps/lib/common"
"github.com/cnlh/nps/lib/daemon"
"github.com/cnlh/nps/lib/version"
"github.com/cnlh/nps/vender/github.com/astaxie/beego"
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
"os"
"path/filepath"
"strings"
"time"
)
Expand Down Expand Up @@ -61,7 +59,7 @@ func main() {
}
} else {
if *configPath == "" {
*configPath = filepath.Join(beego.AppPath, "conf", "npc.conf")
*configPath = "npc.conf"
}
client.StartFromFile(*configPath)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/version/version.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package version

const VERSION = "0.21.0"
const VERSION = "0.21.1"

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

0 comments on commit a831ccd

Please sign in to comment.