From 4ed06e9ba535b8197feca1825f2a703e18fbc466 Mon Sep 17 00:00:00 2001 From: tired-engineer <122563281+tired-engineer@users.noreply.github.com> Date: Wed, 1 Nov 2023 18:11:41 +0100 Subject: [PATCH] Pass correct Filer's gRPC port to S3 server. (#4972) Fixes seaweedfs/seaweedfs#4971 --- weed/command/filer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/filer.go b/weed/command/filer.go index 7e636974f..fe0beb5b8 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -169,7 +169,7 @@ func runFiler(cmd *Command, args []string) bool { go stats_collect.StartMetricsServer(*f.bindIp, *f.metricsHttpPort) - filerAddress := util.JoinHostPort(*f.ip, *f.port) + filerAddress := pb.NewServerAddress(*f.ip, *f.port, *f.portGrpc).String() startDelay := time.Duration(2) if *filerStartS3 { filerS3Options.filer = &filerAddress