From a831ccd8fabe5d4709ac2ca1e872098bab5fd88f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B2=B3?= Date: Mon, 1 Apr 2019 23:58:23 +0800 Subject: [PATCH] version --- README.md | 3 +++ cmd/npc/npc.go | 4 +--- lib/version/version.go | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 492a689b..4303547e 100644 --- a/README.md +++ b/README.md @@ -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管理端。 @@ -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 diff --git a/cmd/npc/npc.go b/cmd/npc/npc.go index b7f52e0e..4cf66df5 100644 --- a/cmd/npc/npc.go +++ b/cmd/npc/npc.go @@ -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" ) @@ -61,7 +59,7 @@ func main() { } } else { if *configPath == "" { - *configPath = filepath.Join(beego.AppPath, "conf", "npc.conf") + *configPath = "npc.conf" } client.StartFromFile(*configPath) } diff --git a/lib/version/version.go b/lib/version/version.go index edd78efd..bca6a38e 100644 --- a/lib/version/version.go +++ b/lib/version/version.go @@ -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 {