diff --git a/internal/configuration/decode_hooks_test.go b/internal/configuration/decode_hooks_test.go index dc2eca84..cbf65339 100644 --- a/internal/configuration/decode_hooks_test.go +++ b/internal/configuration/decode_hooks_test.go @@ -774,7 +774,6 @@ func TestStringToAddressHookFunc(t *testing.T) { expected interface{} err string decode bool - wantGrps []string }{ { name: "ShouldDecodeNonPtr", diff --git a/internal/configuration/schema/types.go b/internal/configuration/schema/types.go index dc3bc3bb..5fb6de70 100644 --- a/internal/configuration/schema/types.go +++ b/internal/configuration/schema/types.go @@ -52,7 +52,7 @@ func NewAddressFromURL(u *url.URL) (addr *Address, err error) { } switch addr.Scheme { - case "tcp", "udp", "http", "https": + case "tcp", "udp": break default: return nil, fmt.Errorf("could not parse scheme for address '%s': scheme '%s' is not valid, expected to be one of 'tcp://', 'udp://'", u.String(), addr.Scheme)