Skip to content

Commit

Permalink
#17
Browse files Browse the repository at this point in the history
  • Loading branch information
txthinking committed Dec 25, 2019
1 parent 13386ae commit b2608ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Keep it **simple**, **stupid**.

| Download | OS | Arch |
| ------------------------------------------------------------------------------------------------------------ | ------- | ----- |
| [mr2](https://github.com/txthinking/mr2/releases/download/v20200101/mr2) | Linux | amd64 |
| [mr2_darwin_amd64](https://github.com/txthinking/mr2/releases/download/v20200101/mr2_darwin_amd64) | MacOS | amd64 |
| [mr2_windows_amd64.exe](https://github.com/txthinking/mr2/releases/download/v20200101/mr2_windows_amd64.exe) | Windows | amd64 |
| [mr2](https://github.com/txthinking/mr2/releases/download/v20200102/mr2) | Linux | amd64 |
| [mr2_darwin_amd64](https://github.com/txthinking/mr2/releases/download/v20200102/mr2_darwin_amd64) | MacOS | amd64 |
| [mr2_windows_amd64.exe](https://github.com/txthinking/mr2/releases/download/v20200102/mr2_windows_amd64.exe) | Windows | amd64 |

See [releases](https://github.com/txthinking/mr2/releases) for other platforms. Or `go get github.com/txthinking/mr2/cli/mr2`.

Expand Down
7 changes: 4 additions & 3 deletions cli/mr2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var debugListen string
func main() {
app := cli.NewApp()
app.Name = "Mr.2"
app.Version = "20200101"
app.Version = "20200102"
app.Usage = "Expose local server to external network"
app.Flags = []cli.Flag{
&cli.BoolFlag{
Expand Down Expand Up @@ -66,8 +66,9 @@ func main() {
Usage: "Password",
},
&cli.StringSliceFlag{
Name: "portPassword, P",
Usage: "Only allow this port and password, like '1000 password'. If you specify this parameter, --password will be ignored",
Name: "portPassword",
Aliases: []string{"P"},
Usage: "Only allow this port and password, like '1000 password'. If you specify this parameter, --password will be ignored",
},
},
Action: func(c *cli.Context) error {
Expand Down

0 comments on commit b2608ca

Please sign in to comment.