Use , not | to match multiples items

Fixes #1558
This commit is contained in:
Frank Denis 2020-12-26 17:55:31 +01:00
parent 2baabbca8a
commit 254a4a6532
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ func route(proxy *Proxy, name string) (*Relay, error) {
return nil, fmt.Errorf("Undefined relay [%v] for server [%v]", relayName, name)
}
switch relayCandidateStamp.Proto {
case stamps.StampProtoTypeDNSCrypt | stamps.StampProtoTypeDNSCryptRelay:
case stamps.StampProtoTypeDNSCrypt, stamps.StampProtoTypeDNSCryptRelay:
relayUDPAddr, err := net.ResolveUDPAddr("udp", relayCandidateStamp.ServerAddrStr)
if err != nil {
return nil, err