aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorzuzuviewer <750938164@qq.com>2025-07-08 13:48:12 +0800
committerGitHub <noreply@github.com>2025-07-07 22:48:12 -0700
commit8fa1a69f8c915311326e75645681d10f66d9e222 (patch)
treec262e32f0764804cac5356fdadd1229a915f4649 /weed/command/volume.go
parent39b7e44fb58d18bb3a1c118e878748a43f18757b (diff)
downloadseaweedfs-8fa1a69f8c915311326e75645681d10f66d9e222.tar.xz
seaweedfs-8fa1a69f8c915311326e75645681d10f66d9e222.zip
* Fix undefined http serve behaiver (#6943)
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go19
1 files changed, 8 insertions, 11 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 97986b500..c18ed3222 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -2,7 +2,6 @@ package command
import (
"fmt"
- "github.com/seaweedfs/seaweedfs/weed/util/version"
"net/http"
httppprof "net/http/pprof"
"os"
@@ -11,26 +10,23 @@ import (
"strings"
"time"
- "github.com/seaweedfs/seaweedfs/weed/storage/types"
-
"github.com/spf13/viper"
"google.golang.org/grpc"
-
- "github.com/seaweedfs/seaweedfs/weed/util/grace"
-
- "github.com/seaweedfs/seaweedfs/weed/pb"
- "github.com/seaweedfs/seaweedfs/weed/security"
- "github.com/seaweedfs/seaweedfs/weed/server/constants"
- "github.com/seaweedfs/seaweedfs/weed/util/httpdown"
-
"google.golang.org/grpc/reflection"
"github.com/seaweedfs/seaweedfs/weed/glog"
+ "github.com/seaweedfs/seaweedfs/weed/pb"
"github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb"
+ "github.com/seaweedfs/seaweedfs/weed/security"
weed_server "github.com/seaweedfs/seaweedfs/weed/server"
+ "github.com/seaweedfs/seaweedfs/weed/server/constants"
stats_collect "github.com/seaweedfs/seaweedfs/weed/stats"
"github.com/seaweedfs/seaweedfs/weed/storage"
+ "github.com/seaweedfs/seaweedfs/weed/storage/types"
"github.com/seaweedfs/seaweedfs/weed/util"
+ "github.com/seaweedfs/seaweedfs/weed/util/grace"
+ "github.com/seaweedfs/seaweedfs/weed/util/httpdown"
+ "github.com/seaweedfs/seaweedfs/weed/util/version"
)
var (
@@ -398,6 +394,7 @@ func (v VolumeServerOptions) startClusterHttpService(handler http.Handler) httpd
if viper.GetString("https.volume.ca") != "" {
clientCertFile := viper.GetString("https.volume.ca")
httpS.TLSConfig = security.LoadClientTLSHTTP(clientCertFile)
+ security.FixTlsConfig(util.GetViper(), httpS.TLSConfig)
}
clusterHttpServer := httpDown.Serve(httpS, listener)