From 57e6e47f190abbe41de7d4adf26b53f7cc811c86 Mon Sep 17 00:00:00 2001 From: kovacs Date: Thu, 14 Mar 2024 11:01:36 +0800 Subject: [PATCH] feat(acme): support acme listen host support acme listen host ref #978 Signed-off-by: kovacs --- app/cmd/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cmd/server.go b/app/cmd/server.go index 0f289dc..5a770cc 100644 --- a/app/cmd/server.go +++ b/app/cmd/server.go @@ -83,6 +83,7 @@ type serverConfigACME struct { CA string `mapstructure:"ca"` DisableHTTP bool `mapstructure:"disableHTTP"` DisableTLSALPN bool `mapstructure:"disableTLSALPN"` + ListenHost string `mapstructure:"listenHost"` AltHTTPPort int `mapstructure:"altHTTPPort"` AltTLSALPNPort int `mapstructure:"altTLSALPNPort"` Dir string `mapstructure:"dir"` @@ -280,6 +281,7 @@ func (c *serverConfig) fillTLSConfig(hyConfig *server.Config) error { Agreed: true, DisableHTTPChallenge: c.ACME.DisableHTTP, DisableTLSALPNChallenge: c.ACME.DisableTLSALPN, + ListenHost: c.ACME.ListenHost, AltHTTPPort: c.ACME.AltHTTPPort, AltTLSALPNPort: c.ACME.AltTLSALPNPort, Logger: logger,