Merge branch 'master' of github.com:cloudflare/cloudflared

This commit is contained in:
Areg Harutyunyan 2019-03-11 14:57:03 -05:00
commit eafc89bf73
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import (
const defaultScheme = "http" const defaultScheme = "http"
var ( var (
supportedProtocol = [2]string{"http", "https"} supportedProtocols = []string{"http", "https", "rdp"}
validationTimeout = time.Duration(30 * time.Second) validationTimeout = time.Duration(30 * time.Second)
) )
@ -121,7 +121,7 @@ func ValidateUrl(originUrl string) (string, error) {
} }
func validateScheme(scheme string) error { func validateScheme(scheme string) error {
for _, protocol := range supportedProtocol { for _, protocol := range supportedProtocols {
if scheme == protocol { if scheme == protocol {
return nil return nil
} }