s3: bind to a specific IP

fix https://github.com/chrislusf/seaweedfs/issues/2516
This commit is contained in:
chrislu
2021-12-17 11:34:37 -08:00
parent e526a299dc
commit 85c526c583
3 changed files with 5 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ func runServer(cmd *Command, args []string) bool {
filerOptions.masters = pb.ServerAddresses(*masterOptions.peers).ToAddresses()
filerOptions.ip = serverIp
filerOptions.bindIp = serverBindIp
s3Options.bindIp = serverBindIp
serverOptions.v.ip = serverIp
serverOptions.v.bindIp = serverBindIp
serverOptions.v.masters = pb.ServerAddresses(*masterOptions.peers).ToAddresses()