Skip to content

Commit

Permalink
Fix shadowsocks#127: command line specifying -auth not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed May 5, 2016
1 parent 0fd1c39 commit d5dda7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/shadowsocks-local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func main() {
ss.SetDebug(debug)

if strings.HasSuffix(cmdConfig.Method, "-auth") {
cmdConfig.Method = cmdConfig.Method[:len(cmdConfig.Method)-4]
cmdConfig.Method = cmdConfig.Method[:len(cmdConfig.Method)-5]
cmdConfig.Auth = true
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/shadowsocks-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func main() {
ss.SetDebug(debug)

if strings.HasSuffix(cmdConfig.Method, "-auth") {
cmdConfig.Method = cmdConfig.Method[:len(cmdConfig.Method)-4]
cmdConfig.Method = cmdConfig.Method[:len(cmdConfig.Method)-5]
cmdConfig.Auth = true
}

Expand Down

0 comments on commit d5dda7f

Please sign in to comment.