diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-08-30 10:23:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-08-30 10:23:35 -0700 |
| commit | 56244fb9a13c75616aa8a9232c62d1b896906e98 (patch) | |
| tree | 68361d83689b9c8529fea3469692986e9a93b737 | |
| parent | f2a8574448d8c0e0233711778dc7bfe1e9154b63 (diff) | |
| download | seaweedfs-56244fb9a13c75616aa8a9232c62d1b896906e98.tar.xz seaweedfs-56244fb9a13c75616aa8a9232c62d1b896906e98.zip | |
fix hard coded host address
| -rw-r--r-- | weed/server/master_server.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/server/master_server.go b/weed/server/master_server.go index 377fac26f..ae59636ad 100644 --- a/weed/server/master_server.go +++ b/weed/server/master_server.go @@ -7,7 +7,6 @@ import ( "net/url" "os" "regexp" - "strconv" "strings" "sync" "time" @@ -210,7 +209,7 @@ func (ms *MasterServer) startAdminScripts() { scriptLines = append(scriptLines, "unlock") } - masterAddress := "localhost:" + strconv.Itoa(ms.option.Port) + masterAddress := fmt.Sprintf("%s:%d",ms.option.Host, ms.option.Port) var shellOptions shell.ShellOptions shellOptions.GrpcDialOption = security.LoadClientTLS(v, "grpc.master") |
