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
7cb9f91d
Commit
7cb9f91d
authored
Jun 05, 2015
by
rui.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README, help
parent
efd41409
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
README.md
README.md
+5
-3
main.go
main.go
+4
-4
No files found.
README.md
View file @
7cb9f91d
...
@@ -37,9 +37,9 @@ Google讨论组: https://groups.google.com/forum/#!forum/go-gost
...
@@ -37,9 +37,9 @@ Google讨论组: https://groups.google.com/forum/#!forum/go-gost
> -S="": the server that connect to
> -S="": the server that connect to
> -cert="":
cert file for tls
> -cert="":
tls cert file
> -key="":
key file for tls
> -key="":
tls key file
> -m="": tunnel cipher method
> -m="": tunnel cipher method
...
@@ -51,7 +51,9 @@ Google讨论组: https://groups.google.com/forum/#!forum/go-gost
...
@@ -51,7 +51,9 @@ Google讨论组: https://groups.google.com/forum/#!forum/go-gost
> -ss=false: run as shadowsocks server
> -ss=false: run as shadowsocks server
> -ws=false: use websocket for tunnel
> -ws=false: use websocket tunnel
> -http=false: use http tunnel
> -v=false: print version
> -v=false: print version
...
...
main.go
View file @
7cb9f91d
...
@@ -24,11 +24,11 @@ func init() {
...
@@ -24,11 +24,11 @@ func init() {
flag
.
StringVar
(
&
Laddr
,
"L"
,
":8080"
,
"listen address"
)
flag
.
StringVar
(
&
Laddr
,
"L"
,
":8080"
,
"listen address"
)
flag
.
StringVar
(
&
Method
,
"m"
,
""
,
"tunnel cipher method"
)
flag
.
StringVar
(
&
Method
,
"m"
,
""
,
"tunnel cipher method"
)
flag
.
StringVar
(
&
Password
,
"p"
,
""
,
"tunnel cipher password"
)
flag
.
StringVar
(
&
Password
,
"p"
,
""
,
"tunnel cipher password"
)
flag
.
StringVar
(
&
CertFile
,
"cert"
,
""
,
"
cert file for tls
"
)
flag
.
StringVar
(
&
CertFile
,
"cert"
,
""
,
"
tls cert file
"
)
flag
.
StringVar
(
&
KeyFile
,
"key"
,
""
,
"
key file for tls
"
)
flag
.
StringVar
(
&
KeyFile
,
"key"
,
""
,
"
tls key file
"
)
flag
.
BoolVar
(
&
Shadows
,
"ss"
,
false
,
"run as shadowsocks server"
)
flag
.
BoolVar
(
&
Shadows
,
"ss"
,
false
,
"run as shadowsocks server"
)
flag
.
BoolVar
(
&
UseWebsocket
,
"ws"
,
false
,
"use websocket
for
tunnel"
)
flag
.
BoolVar
(
&
UseWebsocket
,
"ws"
,
false
,
"use websocket tunnel"
)
flag
.
BoolVar
(
&
UseHttp
,
"http"
,
false
,
"use http
for
tunnel"
)
flag
.
BoolVar
(
&
UseHttp
,
"http"
,
false
,
"use http tunnel"
)
flag
.
StringVar
(
&
SMethod
,
"sm"
,
"rc4-md5"
,
"shadowsocks cipher method"
)
flag
.
StringVar
(
&
SMethod
,
"sm"
,
"rc4-md5"
,
"shadowsocks cipher method"
)
flag
.
StringVar
(
&
SPassword
,
"sp"
,
"ginuerzh@gmail.com"
,
"shadowsocks cipher password"
)
flag
.
StringVar
(
&
SPassword
,
"sp"
,
"ginuerzh@gmail.com"
,
"shadowsocks cipher password"
)
flag
.
BoolVar
(
&
PrintVersion
,
"v"
,
false
,
"print version"
)
flag
.
BoolVar
(
&
PrintVersion
,
"v"
,
false
,
"print version"
)
...
...
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