summaryrefslogtreecommitdiff
path: root/modules/caddytls/automation.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-06 11:22:06 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-06 11:22:06 -0600
commit6a32daa225dddacf2a87da089e1160a77ef69afb (patch)
tree563791fdaa03eb4e5cbaf677bad24fd2673e0f82 /modules/caddytls/automation.go
parent81cdebf648e16760e5c76097419a114149acfc2f (diff)
caddytls: Support custom bind host for challenges (#3232)
Diffstat (limited to 'modules/caddytls/automation.go')
-rw-r--r--modules/caddytls/automation.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddytls/automation.go b/modules/caddytls/automation.go
index 24a21cb..22cf20b 100644
--- a/modules/caddytls/automation.go
+++ b/modules/caddytls/automation.go
@@ -239,6 +239,10 @@ type ChallengesConfig struct {
// to Caddy from an external server.
DNSRaw json.RawMessage `json:"dns,omitempty" caddy:"namespace=tls.dns inline_key=provider"`
+ // Optionally customize the host to which a listener
+ // is bound if required for solving a challenge.
+ BindHost string `json:"bind_host,omitempty"`
+
DNS challenge.Provider `json:"-"`
}