Support unixgram syslog address
- Consider unixgram:// as a valid URL prefix - Parse unixgram:// addresses - Update docs Signed-off-by: Zhuoyun Wei <wzyboy@wzyboy.org>
This commit is contained in:
parent
d70faf86e8
commit
0554f41c13
2 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ var (
|
||||||
validPrefixes = map[string][]string{
|
validPrefixes = map[string][]string{
|
||||||
"url": {"http://", "https://"},
|
"url": {"http://", "https://"},
|
||||||
"git": {"git://", "github.com/", "git@"},
|
"git": {"git://", "github.com/", "git@"},
|
||||||
"transport": {"tcp://", "tcp+tls://", "udp://", "unix://"},
|
"transport": {"tcp://", "tcp+tls://", "udp://", "unix://", "unixgram://"},
|
||||||
}
|
}
|
||||||
urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$")
|
urlPathWithFragmentSuffix = regexp.MustCompile(".git(?:#.+)?$")
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,6 +23,7 @@ var (
|
||||||
"tcp+tls://example.com",
|
"tcp+tls://example.com",
|
||||||
"udp://example.com",
|
"udp://example.com",
|
||||||
"unix:///example",
|
"unix:///example",
|
||||||
|
"unixgram:///example",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue