summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0218d9f..24e3252 100644
--- a/main.go
+++ b/main.go
@@ -2,6 +2,7 @@ package main
import (
"fmt"
+ "errors"
"io"
"log"
"net"
@@ -85,7 +86,8 @@ func listen(host string, min, max int) {
for n := min; n <= max; n++ {
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", host, n))
if err != nil {
- log.Fatal(err)
+ fmt.Printf("fail %d listen: %s\n", n, errors.Unwrap(err))
+ continue
}
go func(l net.Listener, port int) {