mirror of
https://github.com/pgsty/minio.git
synced 2026-07-28 08:26:17 +03:00
config: Accept more address format + unit test (#3915)
checkURL() is a generic function to check if a passed address is valid. This commit adds support for addresses like `m1` and `172.16.3.1` which is needed in MySQL and NATS. This commit also adds tests.
This commit is contained in:
committed by
Harshavardhana
parent
f3334159a4
commit
8426cf9aec
+1
-1
@@ -36,7 +36,7 @@ func (r *redisNotify) Validate() error {
|
||||
if !r.Enable {
|
||||
return nil
|
||||
}
|
||||
if _, err := checkNetURL(r.Addr); err != nil {
|
||||
if _, err := checkURL(r.Addr); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user