|
@@ -4,10 +4,12 @@ import (
|
|
"context"
|
|
"context"
|
|
"crypto/tls"
|
|
"crypto/tls"
|
|
"errors"
|
|
"errors"
|
|
|
|
+ "io/ioutil"
|
|
"net/http"
|
|
"net/http"
|
|
)
|
|
)
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ log "github.com/sirupsen/logrus"
|
|
"github.com/vulcand/oxy/forward"
|
|
"github.com/vulcand/oxy/forward"
|
|
"github.com/vulcand/oxy/roundrobin"
|
|
"github.com/vulcand/oxy/roundrobin"
|
|
"github.com/vulcand/oxy/testutils"
|
|
"github.com/vulcand/oxy/testutils"
|
|
@@ -32,6 +34,7 @@ func InitServer() error {
|
|
TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
|
|
TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
|
|
Handler: ServeHTTP(),
|
|
Handler: ServeHTTP(),
|
|
}
|
|
}
|
|
|
|
+ log.SetOutput(ioutil.Discard)
|
|
return s.ListenAndServeTLS("", "")
|
|
return s.ListenAndServeTLS("", "")
|
|
}
|
|
}
|
|
|
|
|