Add rdp as a supported protocol in URL validation
This commit is contained in:
parent
07a409ffef
commit
e424d9b6f8
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
const defaultScheme = "http"
|
const defaultScheme = "http"
|
||||||
|
|
||||||
var supportedProtocol = [2]string{"http", "https"}
|
var supportedProtocol = [2]string{"http", "https", "rdp"}
|
||||||
|
|
||||||
func ValidateHostname(hostname string) (string, error) {
|
func ValidateHostname(hostname string) (string, error) {
|
||||||
if hostname == "" {
|
if hostname == "" {
|
||||||
|
|
Loading…
Reference in New Issue