mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
parent
3225ecf537
commit
03d56a31ad
|
@ -774,7 +774,6 @@ func TestStringToAddressHookFunc(t *testing.T) {
|
|||
expected interface{}
|
||||
err string
|
||||
decode bool
|
||||
wantGrps []string
|
||||
}{
|
||||
{
|
||||
name: "ShouldDecodeNonPtr",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user