fix: force UI to use IPv4 (127.0.0.1) for API endpoints
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.
This commit is contained in:
@@ -80,8 +80,8 @@ if (location.pathname !== "/prompt") {
|
||||
providers: [
|
||||
provideHttpClient(),
|
||||
importProvidersFrom(PortmasterAPIModule.forRoot({
|
||||
websocketAPI: "ws://localhost:817/api/database/v1",
|
||||
httpAPI: "http://localhost:817/api"
|
||||
websocketAPI: "ws://127.0.0.1:817/api/database/v1",
|
||||
httpAPI: "http://127.0.0.1:817/api"
|
||||
})),
|
||||
NotificationsService,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user