Skip to content

Commit

Permalink
- update readme
Browse files Browse the repository at this point in the history
- return error if can't bind
  • Loading branch information
flashmob committed Nov 4, 2016
1 parent 7f7f4e6 commit 12cadf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ http://jsonlint.com/#

Releases
=========================================================
1.5.1 - 4nd Nov 2016
- Small optimizations to the way email is saved

1.5 - 2nd Nov 2016
- Fixed a DoS vulnerability, stop reading after an input limit is reached
Expand Down
3 changes: 2 additions & 1 deletion goguerrilla.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func initialise() {
return
}

func runServer(sConfig ServerConfig) {
func runServer(sConfig ServerConfig) (err error) {
server := SmtpdServer{Config: sConfig, sem: make(chan int, sConfig.Max_clients)}

// setup logging
Expand Down Expand Up @@ -92,6 +92,7 @@ func runServer(sConfig ServerConfig) {
listener, err := net.Listen("tcp", sConfig.Listen_interface)
if err != nil {
server.logln(2, fmt.Sprintf("Cannot listen on port, %v", err))
return err
} else {
server.logln(1, fmt.Sprintf("Listening on tcp %s", sConfig.Listen_interface))
}
Expand Down

0 comments on commit 12cadf5

Please sign in to comment.