Skip to content

Commit

Permalink
Fixed TLS config
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Aug 17, 2020
1 parent 5eea351 commit cebede3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion lingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 0 additions & 3 deletions server/connector_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package server

import (
"context"
"crypto/tls"
"fmt"
"github.com/echocat/lingress/support"
log "github.com/sirupsen/logrus"
Expand All @@ -16,8 +15,6 @@ type HttpConnector struct {
Id ConnectorId
Handler ConnectorHandler

TlsConfig *tls.Config

MaxConnections uint16

Server http.Server
Expand Down

0 comments on commit cebede3

Please sign in to comment.