From e621bf08c815827993647d524d7041261fd47bc5 Mon Sep 17 00:00:00 2001 From: changwei <867597730@qq.com> Date: Fri, 20 Oct 2017 18:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- ptt.go => nb.go | 20 ++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) rename ptt.go => nb.go (94%) diff --git a/README.md b/README.md index 673c278..9582395 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# ptt (Port Transmit Tool) -一款lcx在golang下的实现 +# BypassNAT (内网穿透,端口转发工具) +一款lcx(htran)在golang下的实现 + +通过主动连接具有公网IP的电脑打通隧道可实现内网穿透,软件实现的端口转发,透明代理。 # build `go build ptt.go` diff --git a/ptt.go b/nb.go similarity index 94% rename from ptt.go rename to nb.go index 18dc6cb..c3db964 100644 --- a/ptt.go +++ b/nb.go @@ -88,23 +88,23 @@ func main() { } func printWelcome() { - fmt.Println("+----------------------------------------------------------+") - fmt.Println("| Welcome to use the port transmit tool. (PTT ver1.0) |") - fmt.Println("| Code by cw1997 at 2017-10-19 03:59:51 |") - fmt.Println("| If you have some problem when you use the tool, |") - fmt.Println("| please submit issue at : https://github.com/cw1997/ptt . |") - fmt.Println("+----------------------------------------------------------+") + fmt.Println("+----------------------------------------------------------------+") + fmt.Println("| Welcome to use NATBypass Ver1.0.0 . |") + fmt.Println("| Code by cw1997 at 2017-10-19 03:59:51 |") + fmt.Println("| If you have some problem when you use the tool, |") + fmt.Println("| please submit issue at : https://github.com/cw1997/NATBypass . |") + fmt.Println("+----------------------------------------------------------------+") fmt.Println() // sleep one second because the fmt is not thread-safety. // if not to do this, fmt.Print will print after the log.Print. time.Sleep(time.Second) } func printHelp() { - fmt.Println(`usage: "-listen port1 port2" example: "ptt -listen 1997 2017" `) - fmt.Println(` "-tran port1 ip:port2" example: "ptt -tran 1997 192.168.1.2:3389" `) - fmt.Println(` "-slave ip1:port1 ip2:port2" example: "ptt -slave 127.0.0.1:3389 8.8.8.8:1997" `) + fmt.Println(`usage: "-listen port1 port2" example: "nb -listen 1997 2017" `) + fmt.Println(` "-tran port1 ip:port2" example: "nb -tran 1997 192.168.1.2:3389" `) + fmt.Println(` "-slave ip1:port1 ip2:port2" example: "nb -slave 127.0.0.1:3389 8.8.8.8:1997" `) fmt.Println(`============================================================`) - fmt.Println(`optional argument: "-log logpath" . example: "ptt -listen 1997 2017 -log d:/ptt" `) + fmt.Println(`optional argument: "-log logpath" . example: "nb -listen 1997 2017 -log d:/nb" `) fmt.Println(`log filename format: Y_m_d_H_i_s-agrs1-args2-args3.log`) fmt.Println(`============================================================`) fmt.Println(`if you want more help, please read "README.md". `)