mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
text change
This commit is contained in:
parent
999a126a3f
commit
79d68a81fd
|
@ -28,10 +28,10 @@ func VerifyS3BucketName(name string) (err error) {
|
||||||
return fmt.Errorf("name must end with number or lower case character")
|
return fmt.Errorf("name must end with number or lower case character")
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(name, "xn--") {
|
if strings.HasPrefix(name, "xn--") {
|
||||||
return fmt.Errorf("prefix xn-- is a reserved and not allowed in bucket prefix")
|
return fmt.Errorf("prefix xn-- is reserved and not allowed in bucket prefix")
|
||||||
}
|
}
|
||||||
if strings.HasSuffix(name, "-s3alias") {
|
if strings.HasSuffix(name, "-s3alias") {
|
||||||
return fmt.Errorf("suffix -s3alias is a reserved and not allowed in bucket suffix")
|
return fmt.Errorf("suffix -s3alias is reserved and not allowed in bucket suffix")
|
||||||
}
|
}
|
||||||
if net.ParseIP(name) != nil {
|
if net.ParseIP(name) != nil {
|
||||||
return fmt.Errorf("bucket name cannot be ip addresses")
|
return fmt.Errorf("bucket name cannot be ip addresses")
|
||||||
|
|
Loading…
Reference in a new issue