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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
Fix empty public url
chrislusf71e9b302d458
diff --git a/go/weed/server.go b/go/weed/server.goindex 39d02597b8..9102019666 100644--- a/go/weed/server.go+++ b/go/weed/server.go@@ -228,6 +228,9 @@ func runServer(cmd *Command, args []string) bool {if *volumePublicPort == 0 {*volumePublicPort = *volumePort}+ if *serverPublicUrl == "" {+ *serverPublicUrl = *serverIp + ":" + strconv.Itoa(*volumePublicPort)+ }isSeperatedPublicPort := *volumePublicPort != *volumePortvolumeMux := http.NewServeMux()publicVolumeMux := volumeMuxdiff --git a/go/weed/volume.go b/go/weed/volume.goindex 2d3ecbb4da..d3869b2811 100644--- a/go/weed/volume.go+++ b/go/weed/volume.go@@ -101,13 +101,13 @@ func runVolume(cmd *Command, args []string) bool {if *v.ip == "" {*v.ip = "127.0.0.1"}- if *v.publicUrl == "" {- *v.publicUrl = *v.ip + ":" + strconv.Itoa(*v.port)- }if *v.publicPort == 0 {*v.publicPort = *v.port}+ if *v.publicUrl == "" {+ *v.publicUrl = *v.ip + ":" + strconv.Itoa(*v.publicPort)+ }isSeperatedPublicPort := *v.publicPort != *v.portvolumeMux := http.NewServeMux()