Signed-off-by: hanzhixiao <709674996@qq.com>
This commit is contained in:
hanzhixiao
2023-08-11 10:05:56 +08:00
parent 00f179450b
commit 3d3e3620e1
3 changed files with 7 additions and 5 deletions
+3
View File
@@ -182,6 +182,9 @@ func checkMongo() error {
func checkMinio() error {
if config.Config.Object.Enable == "minio" {
if exactIP(config.Config.Object.ApiURL) == "127.0.0.1" || exactIP(config.Config.Object.Minio.Endpoint) == "127.0.0.1" {
return ErrConfig.Wrap("apiURL or Minio endpoint contain 127.0.0.1.")
}
conf := config.Config.Object.Minio
u, _ := url.Parse(conf.Endpoint)
minioClient, err := minio.New(u.Host, &minio.Options{