diff options
Diffstat (limited to 'modules/caddyhttp/autohttps.go')
| -rw-r--r-- | modules/caddyhttp/autohttps.go | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/caddyhttp/autohttps.go b/modules/caddyhttp/autohttps.go index 805a37c..fff4c46 100644 --- a/modules/caddyhttp/autohttps.go +++ b/modules/caddyhttp/autohttps.go @@ -523,7 +523,10 @@ func (app *App) createAutomationPolicies(ctx caddy.Context, internalNames []stri  		// our base/catch-all policy - this will serve the  		// public-looking names as well as any other names  		// that don't match any other policy -		app.tlsApp.AddAutomationPolicy(basePolicy) +		err := app.tlsApp.AddAutomationPolicy(basePolicy) +		if err != nil { +			return err +		}  	} else {  		// a base policy already existed; we might have  		// changed it, so re-provision it  | 
