| other changes. - Add logic to freenas_api_connect to handle a '302 Found' which seems to mean it does not handle v1.0 API's. Fixes #60. - Add logic to freenas_api_connect to handle a '307 Temporary Redirect' which is when the redirect http to https box is checked. Fixes #59. - Redesign the RegEx that validates and pulls the version information from the API system/version call. This is due to a format like TrueNAS-12.0-BETA instead of [FreeNAS|TrueNAS]-12.0-U1.1. Also make sure empty RegEx return variables are zero (0) so the version number that is formulated is correct (e.g. 12000000, 11030302). Fixes #60. - During testing needed to add a check due to the api/v2.0/system/version returning a quoted string where api/v1.0/system/version returned a JSON-format data. - Tested against baremetal FreeNAS 11.3-U3.2 and virtual TrueNAS 12.0-BETA machines. | ||
|---|---|---|
| .. | ||
| FreeNAS.pm | ||