|
@@ -11,7 +11,7 @@ var (
|
|
|
validPrefixes = map[string][]string{
|
|
|
"url": {"http://", "https://"},
|
|
|
"git": {"git://", "github.com/", "git@"},
|
|
|
- "transport": {"tcp://", "udp://", "unix://"},
|
|
|
+ "transport": {"tcp://", "tcp+tls://", "udp://", "unix://"},
|
|
|
}
|
|
|
urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$")
|
|
|
)
|
|
@@ -35,7 +35,7 @@ func IsGitTransport(str string) bool {
|
|
|
return IsURL(str) || strings.HasPrefix(str, "git://") || strings.HasPrefix(str, "git@")
|
|
|
}
|
|
|
|
|
|
-// IsTransportURL returns true if the provided str is a transport (tcp, udp, unix) URL.
|
|
|
+// IsTransportURL returns true if the provided str is a transport (tcp, tcp+tls, udp, unix) URL.
|
|
|
func IsTransportURL(str string) bool {
|
|
|
return checkURL(str, "transport")
|
|
|
}
|