Skip to content

Commit

Permalink
更名
Browse files Browse the repository at this point in the history
  • Loading branch information
cw1997 committed Oct 20, 2017
1 parent 94c6b18 commit e621bf0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ptt (Port Transmit Tool)
一款lcx在golang下的实现
# BypassNAT (内网穿透,端口转发工具)
一款lcx(htran)在golang下的实现

通过主动连接具有公网IP的电脑打通隧道可实现内网穿透,软件实现的端口转发,透明代理。

# build
`go build ptt.go`
Expand Down
20 changes: 10 additions & 10 deletions ptt.go → nb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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". `)
Expand Down

0 comments on commit e621bf0

Please sign in to comment.