Skip to content
This repository has been archived by the owner on Aug 27, 2020. It is now read-only.

Commit

Permalink
0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lzjluzijie committed Nov 28, 2018
1 parent e686e4d commit e355b41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ archive:
- LICENSE
- README.md
- README-en.md
- templates/**/*
# - templates/**/*
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The disadvantage is that I have just started development, there is no GUI client

#### Client
```
./websocks client -l :1080 -s wss://websocks.org:443/websocks -n mirror.centos.com --insecure
./websocks client -l :1080 -s wss://websocks.org:443/websocks -sni mirror.centos.com --insecure
```

### Caddy TLS
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#### 客户端
```
./websocks client -l :1080 -s wss://websocks.org:443/websocks -n mirror.centos.com --insecure
./websocks client -l :1080 -s wss://websocks.org:443/websocks -sni mirror.centos.com --insecure
```


Expand Down
13 changes: 7 additions & 6 deletions websocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ func main() {
Value: "ws://localhost:23333/websocks",
Usage: "server url",
},
cli.BoolFlag{
Name: "mux",
Usage: "mux mode",
},
//todo 0.15
//cli.BoolFlag{
// Name: "mux",
// Usage: "mux mode",
//},
cli.StringFlag{
Name: "sni",
Value: "",
Expand All @@ -57,7 +58,7 @@ func main() {
Action: func(c *cli.Context) (err error) {
listenAddr := c.String("l")
serverURL := c.String("s")
mux := c.Bool("mux")
//mux := c.Bool("mux")
sni := c.String("sni")
insecureCert := false
if c.Bool("insecure") {
Expand All @@ -69,7 +70,7 @@ func main() {
ServerURL: serverURL,
SNI: sni,
InsecureCert: insecureCert,
Mux: mux,
//Mux: mux,
}

wc, err := config.GetClient()
Expand Down

0 comments on commit e355b41

Please sign in to comment.