minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
78 stars 50 forks source link

Fix ip check when ENABLE_VIRTUAL_STYLE=1 is set #333

Closed halkyon closed 2 years ago

halkyon commented 2 years ago

I was getting an error "127.0.0.1 must be an IP address" when running mint with ENABLE_VIRTUAL_STYLE=1. The check for octets doesn't quite work as the array size is 1 instead of 4. Using read command with IFS set to a dot fixes this issue.