mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 11:13:35 +08:00
fix hard coded host address
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@@ -210,7 +209,7 @@ func (ms *MasterServer) startAdminScripts() {
|
|||||||
scriptLines = append(scriptLines, "unlock")
|
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
|
var shellOptions shell.ShellOptions
|
||||||
shellOptions.GrpcDialOption = security.LoadClientTLS(v, "grpc.master")
|
shellOptions.GrpcDialOption = security.LoadClientTLS(v, "grpc.master")
|
||||||
|
Reference in New Issue
Block a user