mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-24 16:51:47 -04:00
When cameras use HTTPS with self-signed or invalid certificates, LWP's default SSL verification causes connection failures. Add automatic fallback to all three HTTP methods (get, put, post) in the base Control class: if a request fails with an SSL/certificate error, disable verification and retry. Once disabled, the relaxed setting persists for the rest of the control session via the ssl_verify_disabled flag. This follows the pattern already used in Dahua.pm and TapoC520WS_ONVIF.pm but applies it universally so all control modules benefit without needing individual SSL handling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>