aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
committerchrislu <chris.lu@gmail.com>2022-08-07 01:34:32 -0700
commit67814a5c79078e0fd6ca226501b7e48cb2e0558f (patch)
tree73df37af06bf6b51e4305d38894ab73dd7aada00 /weed/command/volume.go
parent1a4bf0dcb5852c62070fe9627b7e63c5d55bb460 (diff)
downloadseaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.tar.xz
seaweedfs-67814a5c79078e0fd6ca226501b7e48cb2e0558f.zip
refactor and fix strings.Split
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 45d13ac1f..91d9fb925 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -188,9 +188,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
}
// security related white list configuration
- if volumeWhiteListOption != "" {
- v.whiteList = strings.Split(volumeWhiteListOption, ",")
- }
+ v.whiteList = util.StringSplit(volumeWhiteListOption, ",")
if *v.ip == "" {
*v.ip = util.DetectedHostAddress()