From 2810af66e79601135af9810ffa04ff42bdc7e59e Mon Sep 17 00:00:00 2001 From: Alberto Ricart Date: Tue, 24 Oct 2023 17:12:34 -0500 Subject: [PATCH] [FEAT] relax protocol names to allow for ws/wss for account resolver operations --- v2/operator_claims.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v2/operator_claims.go b/v2/operator_claims.go index 3835b97..673225f 100644 --- a/v2/operator_claims.go +++ b/v2/operator_claims.go @@ -136,8 +136,12 @@ func ValidateOperatorServiceURL(v string) error { return nil case "tls": return nil + case "ws": + return nil + case "wss": + return nil default: - return fmt.Errorf("operator service url %q - protocol not supported (only 'nats' or 'tls' only)", v) + return fmt.Errorf("operator service url %q - protocol not supported (only 'nats', 'tls', 'ws', 'wss' only)", v) } }