Merge branch 'master' of github.com:cloudflare/cloudflared
This commit is contained in:
commit
eafc89bf73
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue