Previously, the API endpoint was defined using `localhost`, which could resolve to the IPv6 address `::1`. This caused issues because the Portmaster core service is listening on `127.0.0.1:817` and only fast-tracking connections to that specific IPv4 address.