Skip to content

Commit

Permalink
Exit if port is not bindable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasf authored and cyfdecyf committed Apr 25, 2015
1 parent 2241f28 commit a457853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/shadowsocks-server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func run(port, password string) {
ln, err := net.Listen("tcp", ":"+port)
if err != nil {
log.Printf("error listening port %v: %v\n", port, err)
return
os.Exit(1)
}
passwdManager.add(port, password, ln)
var cipher *ss.Cipher
Expand Down

0 comments on commit a457853

Please sign in to comment.