Skip to content

Commit

Permalink
Favor 127.0.0.1 instead of localhost or :: to just force IPv4 binding
Browse files Browse the repository at this point in the history
If at a later point, IPv6 is needed, you will need to create 2 servers.
See rancher-sandbox#7271 discussion for more details

Signed-off-by: Mike Seese <[email protected]>
  • Loading branch information
mikeseese committed Aug 3, 2024
1 parent e2706a5 commit 22ec51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rancher-desktop/backend/kube/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ export class KubeClient extends events.EventEmitter {
});
server.once('listening', resolveOnce);
server.once('error', rejectOnce);
server.listen({ port: hostPort, host: 'localhost' });
server.listen({ port: hostPort, host: '127.0.0.1' });
});

return server;
Expand Down

0 comments on commit 22ec51a

Please sign in to comment.