Unifi integration not working with domain name

Unifi integration stopped working in upgrading versions between 0.106.0 & 0.106.5

(I did a couple of upgrades but didnt realise it stopped working so unable to pinpoint exactly when i happened)

I have my unifi controller setup in docker using reverse proxy. I setup the integration using the FQDN with no issues, however it has stopped working and now I try and re-add the integration it will only succeed if I use the IP address of the container, not the domain name.

Anyone else have this issue or advice on what might have changed?