diff --git a/internal/rpc/services/service_http_web.go b/internal/rpc/services/service_http_web.go index 87017c2e..4acb0776 100644 --- a/internal/rpc/services/service_http_web.go +++ b/internal/rpc/services/service_http_web.go @@ -369,7 +369,7 @@ func (this *HTTPWebService) UpdateHTTPWebShutdown(ctx context.Context, req *pb.U if len(shutdownConfig.URL) > maxURLLength { return nil, errors.New("'url' too long") } - if !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) { + if shutdownConfig.IsOn /** validate when it's on **/ && !regexputils.HTTPProtocol.MatchString(shutdownConfig.URL) { return nil, errors.New("invalid 'url' format") }