We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384aa30 commit 2c7e3ddCopy full SHA for 2c7e3dd
main.go
@@ -71,7 +71,7 @@ func validateLogAddress(logAddress string) error {
71
if err != nil && match {
72
return nil
73
}
74
- if !govalidator.IsDialString(logAddress) && !govalidator.IsDialString(logAddress+":514") {
+ if !govalidator.IsHost(logAddress) && !govalidator.IsDialString(logAddress) {
75
return errors.New(fmt.Sprintf("%s should be either syslog host[:port] or a socket", logAddress))
76
77
} else {
0 commit comments