Skip to content

Commit 12cadf5

Browse files
committed
- update readme
- return error if can't bind
1 parent 7f7f4e6 commit 12cadf5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ http://jsonlint.com/#
194194

195195
Releases
196196
=========================================================
197+
1.5.1 - 4nd Nov 2016
198+
- Small optimizations to the way email is saved
197199

198200
1.5 - 2nd Nov 2016
199201
- Fixed a DoS vulnerability, stop reading after an input limit is reached

goguerrilla.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func initialise() {
6464
return
6565
}
6666

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

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

0 commit comments

Comments
 (0)