Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gost
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gost
Commits
82e624d8
Commit
82e624d8
authored
Aug 18, 2015
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix param priority
parent
90e17c84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
README.md
README.md
+12
-0
client.go
client.go
+1
-1
No files found.
README.md
View file @
82e624d8
...
...
@@ -16,6 +16,10 @@ gost - GO Simple Tunnel
Google讨论组: https://groups.google.com/d/forum/go-gost
#### 版本更新
##### v1.8
*
支持tls tunnel(-tls参数),直接使用tls进行加密传输
##### v1.7
*
支持认证功能,当作为http(s)代理时使用Basic Auth认证方式,当作为标准socks5代理时使用Username/Password认证方式
...
...
@@ -67,6 +71,8 @@ Google讨论组: https://groups.google.com/d/forum/go-gost
> -ss=false: run as shadowsocks server
> -tls=false: use ssl/tls tunnel
> -ws=false: use websocket tunnel
> -http=false: use http tunnel
...
...
@@ -96,6 +102,12 @@ Google讨论组: https://groups.google.com/d/forum/go-gost
*
socks5代理:
`gost -L=:8899 -P=socks://127.0.0.1:1080`
*
socks5代理(需认证):
`gost -L=:8899 -P=socks://admin:123456@127.0.0.1:1080`
##### 使用tls tunnel (推荐)
*
客户端:
`gost -L=:8899 -S=server_ip:8080 -tls`
*
服务器:
`gost -L=:8080 -tls`
注: 可通过-key, -cert参数手动指定自己的公钥与私钥文件。
##### 使用websocket tunnel
*
客户端:
`gost -L=:8899 -S=server_ip:8080 -ws`
*
服务器:
`gost -L=:8080 -ws`
...
...
client.go
View file @
82e624d8
...
...
@@ -92,7 +92,7 @@ func clientMethodSelected(method uint8, conn net.Conn) (net.Conn, error) {
}
func
makeTunnel
()
(
c
net
.
Conn
,
err
error
)
{
if
UseWebsocket
||
!
UseHttp
{
if
Use
TLS
||
Use
Websocket
||
!
UseHttp
{
c
,
err
=
connect
(
Saddr
)
}
else
{
addr
:=
Saddr
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment