更新 README.md

This commit is contained in:
骁龙
2017-03-29 10:33:37 +08:00
parent ece9e5babd
commit bafd051fec

View File

@@ -1,9 +1,9 @@
#chuantou 内网穿透 v1.1正式版
#chuantou 内网穿透 v1.2版本
##软件作用:可以让全世界访问家用电脑里的网站。
##原理
###client运行在家用电脑内装有自己的网站。user为访问网站的浏览器。
![输入图片说明](http://git.oschina.net/uploads/images/2017/0313/235933_fd3a3ee6_891703.png "在这里输入图片标题")
##内网穿透v1.1正式版特色
##内网穿透v1.2版特色
**1、多协程并发管理多个tcp链接。速度更快。**
**2、加入心跳包机制20秒。应对拔网线等极端情况**
@@ -19,14 +19,14 @@
###1、配置好go语言环境
###2、把server.go上传到公网服务器上。运行例子go run server.go -localPort 3002 -remotePort 20012如下图
localPort端口为用户访问的端口remotePort端口为与client通讯的端口。
![输入图片说明](http://git.oschina.net/uploads/images/2017/0322/165645_8df360fb_891703.png "在这里输入图片标题")
![输入图片说明](http://git.oschina.net/uploads/images/2017/0329/103259_a77dfa0e_891703.png "在这里输入图片标题")
###3、把client.go放在家用电脑上无公网ip只能家用电脑80端口可以访问到本地的网站。运行例子go run client.go -host 服务器ip -localPort 80 -remotePort 20012如下图
localPort端口为家用电脑网站的端口remotePort端口为与server通讯的端口与server端设置必须一致
![输入图片说明](http://git.oschina.net/uploads/images/2017/0322/170756_c0a4985f_891703.png "在这里输入图片标题")
![输入图片说明](http://git.oschina.net/uploads/images/2017/0329/103312_81b123e0_891703.png "在这里输入图片标题")
###4、全世界任何浏览器访问公网ip:3002即可访问到家用电脑中的网站。如服务器ip为1.1.1.1则访问1.1.1.1:3002如下图
![输入图片说明](http://git.oschina.net/uploads/images/2017/0322/165708_62c3c386_891703.png "在这里输入图片标题")
![输入图片说明](http://git.oschina.net/uploads/images/2017/0329/103334_7bd07f0d_891703.png "在这里输入图片标题")
##补充:
1.作者初入tcp网络编程。软件还不完善如果发现bug欢迎提交issue