From e6aaf7e2dda4348cf965f03a7ab2cb92621db652 Mon Sep 17 00:00:00 2001 From: xenolf Date: Sat, 13 Jun 2015 21:15:34 +0200 Subject: [PATCH] Program should not exit on bind error, but return the error to get handled --- acme/simple_http_challenge.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/acme/simple_http_challenge.go b/acme/simple_http_challenge.go index 16ad35eb..7713d762 100644 --- a/acme/simple_http_challenge.go +++ b/acme/simple_http_challenge.go @@ -129,7 +129,6 @@ func (s *simpleHTTPChallenge) startHTTPSServer(domain string, token string, resp tempCertPEM, pemBytes) if err != nil { - logger().Print("error here!") return nil, err } @@ -146,7 +145,7 @@ func (s *simpleHTTPChallenge) startHTTPSServer(domain string, token string, resp tlsListener, err := tls.Listen("tcp", port, tlsConf) if err != nil { - logger().Fatalf("Could not start HTTP listener! -> %v", err) + return nil, fmt.Errorf("Could not start HTTP listener! -> %v", err) } // The handler validates the HOST header and request type.