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

@@ -138,6 +138,7 @@ func runFiler(cmd *Command, args []string) bool {
startDelay := time.Duration(2)
if *filerStartS3 {
filerS3Options.filer = &filerAddress
filerS3Options.bindIp = f.bindIp
go func() {
time.Sleep(startDelay * time.Second)
filerS3Options.startS3Server()