From e424d9b6f869bb82828c3d30557636d3e7bd4768 Mon Sep 17 00:00:00 2001 From: Joel Miles Date: Thu, 7 Mar 2019 11:17:13 -0600 Subject: [PATCH] Add rdp as a supported protocol in URL validation --- validation/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/validation.go b/validation/validation.go index f0d80964..396a6a43 100644 --- a/validation/validation.go +++ b/validation/validation.go @@ -14,7 +14,7 @@ import ( const defaultScheme = "http" -var supportedProtocol = [2]string{"http", "https"} +var supportedProtocol = [2]string{"http", "https", "rdp"} func ValidateHostname(hostname string) (string, error) { if hostname == "" {