admin server: fix tls setting

fix https://github.com/seaweedfs/seaweedfs/issues/7038#issuecomment-3124471878
This commit is contained in:
chrislu
2025-07-27 13:59:43 -07:00
parent 7ab85c3748
commit 470d450f17

View File

@@ -60,7 +60,7 @@ type AdminServer struct {
// Type definitions moved to types.go
func NewAdminServer(masters string, templateFS http.FileSystem, dataDir string) *AdminServer {
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.admin")
// Create master client with multiple master support
masterClient := wdclient.NewMasterClient(