What's changed
- Fix: requests after an expired session could go to the wrong URL. When a username/password session expired,
the client logged in again automatically and retried the request, but lost the information that UniFi OS system
requests (such asget_update_os_console()) must not get the/proxy/networkprefix. The retry now goes to the
same URL as the original request. - Fix:
stat_5minutes_user()without a MAC address no longer triggers a PHP deprecation notice on PHP 8.1 and
later, and no longer sends an empty MAC filter to the controller; it now behaves likestat_hourly_user(),
stat_daily_user()andstat_monthly_user(). - Fix: the constructor accepts
nullfor$siteand$version, as its signature already said, and uses the
default values ('default'and'8.0.28'). Passingnullused to end in aTypeError.
Full changelog: v2.4.2...v2.4.3