refactor and fix strings.Split
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user