Merge pull request #21613 from wzyboy/support-unixgram-syslog-address

Support unixgram syslog address
This commit is contained in:
Brian Goff 2016-04-28 11:06:17 -04:00
commit d4db263aa4
2 changed files with 2 additions and 1 deletions

View file

@ -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(?:#.+)?$")
)

View file

@ -23,6 +23,7 @@ var (
"tcp+tls://example.com",
"udp://example.com",
"unix:///example",
"unixgram:///example",
}
)