diff --git a/main.go b/main.go index 0268633..a73bbf5 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,7 @@ func validateLogAddress(logAddress string) error { if err != nil && match { return nil } - if !govalidator.IsDialString(logAddress) && !govalidator.IsDialString(logAddress+":514") { + if !govalidator.IsHost(logAddress) && !govalidator.IsDialString(logAddress) { return errors.New(fmt.Sprintf("%s should be either syslog host[:port] or a socket", logAddress)) } } else {