diff --git a/lingress.go b/lingress.go index a2c4343..cd030d0 100644 --- a/lingress.go +++ b/lingress.go @@ -179,7 +179,7 @@ func (instance *Lingress) Init(stop support.Channel) error { if tlsConfig, err := instance.createTlsConfig(); err != nil { return err } else { - instance.Https.TlsConfig = tlsConfig + instance.Https.Server.TLSConfig = tlsConfig } if err := instance.Http.Serve(stop); err != nil { diff --git a/server/connector_http.go b/server/connector_http.go index 06bad22..aa158e8 100644 --- a/server/connector_http.go +++ b/server/connector_http.go @@ -2,7 +2,6 @@ package server import ( "context" - "crypto/tls" "fmt" "github.com/echocat/lingress/support" log "github.com/sirupsen/logrus" @@ -16,8 +15,6 @@ type HttpConnector struct { Id ConnectorId Handler ConnectorHandler - TlsConfig *tls.Config - MaxConnections uint16 Server http.Server