diff --git a/urlutil/urlutil.go b/urlutil/urlutil.go index 1135a4c..4415287 100644 --- a/urlutil/urlutil.go +++ b/urlutil/urlutil.go @@ -11,7 +11,7 @@ var ( validPrefixes = map[string][]string{ "url": {"http://", "https://"}, "git": {"git://", "github.com/", "git@"}, - "transport": {"tcp://", "tcp+tls://", "udp://", "unix://"}, + "transport": {"tcp://", "tcp+tls://", "udp://", "unix://", "unixgram://"}, } urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$") ) diff --git a/urlutil/urlutil_test.go b/urlutil/urlutil_test.go index 86d48cf..75eb464 100644 --- a/urlutil/urlutil_test.go +++ b/urlutil/urlutil_test.go @@ -23,6 +23,7 @@ var ( "tcp+tls://example.com", "udp://example.com", "unix:///example", + "unixgram:///example", } )