Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix syntax error

Chris Lu11b4e0c77d5d
diff --git a/go/weed/volume.go b/go/weed/volume.go
index 80083dbccf..3ebf8e1f2a 100644
--- a/go/weed/volume.go
+++ b/go/weed/volume.go
@@ -384,11 +384,13 @@ func runVolume(cmd *Command, args []string) bool {
func secure(f func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
if *whiteList == "" {
- return f(w, r)
+ f(w, r)
+ return
}
ip := r.RemoteAddr[0:strings.Index(r.RemoteAddr, ":")]
if strings.Contains(*whiteList, ip) {
- return f(w, r)
+ f(w, r)
+ return
}
return
}