mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 00:09:57 +00:00
Merge branch 'master' of github.com:cloudflare/cloudflared
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
const defaultScheme = "http"
|
||||
|
||||
var (
|
||||
supportedProtocol = [2]string{"http", "https"}
|
||||
supportedProtocols = []string{"http", "https", "rdp"}
|
||||
validationTimeout = time.Duration(30 * time.Second)
|
||||
)
|
||||
|
||||
@@ -121,7 +121,7 @@ func ValidateUrl(originUrl string) (string, error) {
|
||||
}
|
||||
|
||||
func validateScheme(scheme string) error {
|
||||
for _, protocol := range supportedProtocol {
|
||||
for _, protocol := range supportedProtocols {
|
||||
if scheme == protocol {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user