diff options
Diffstat (limited to 'cmd/tlsrouter/config.go')
-rw-r--r-- | cmd/tlsrouter/config.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/tlsrouter/config.go b/cmd/tlsrouter/config.go index 1c8151f..692b04b 100644 --- a/cmd/tlsrouter/config.go +++ b/cmd/tlsrouter/config.go @@ -37,7 +37,6 @@ type Route struct { type Config struct { mu sync.Mutex routes []Route - acme *ACME } func dnsRegex(s string) (*regexp.Regexp, error) { @@ -64,10 +63,6 @@ func (c *Config) Match(hostname string) (string, bool) { c.mu.Lock() defer c.mu.Unlock() - if strings.HasSuffix(hostname, ".acme.invalid") { - return c.acme.Match(hostname), false - } - for _, r := range c.routes { if r.match.MatchString(hostname) { return r.backend, r.proxyInfo @@ -123,10 +118,6 @@ func (c *Config) Read(r io.Reader) error { c.mu.Lock() defer c.mu.Unlock() c.routes = routes - c.acme = &ACME{ - backends: backends, - cache: make(map[string]acmeCacheEntry), - } return nil } |