Skip to content

Commit 80feb75

Browse files
committed
Fix server cli
1 parent ee3862e commit 80feb75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gitpod-shared/src/features.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ async function updateIpcHookCli(context: GitpodExtensionContext): Promise<void>
834834
try {
835835
await new Promise<void>((resolve, reject) => {
836836
const req = http.request({
837-
hostname: 'localhost',
837+
hostname: '127.0.0.1',
838838
port: context.devMode ? 9888 /* From code-web.js */ : context.info.idePort,
839839
protocol: 'http:',
840840
path: `/cli/ipcHookCli/${encodeURIComponent(context.ipcHookCli!)}`,

gitpod-shared/src/gitpodContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class SupervisorConnection {
4242
normal: 15 * 1000,
4343
short: 5 * 1000
4444
};
45-
private readonly addr = process.env.SUPERVISOR_ADDR || 'localhost:22999';
45+
private readonly addr = process.env.SUPERVISOR_ADDR || '127.0.0.1:22999';
4646
private readonly clientOptions: Partial<grpc.ClientOptions>;
4747
readonly metadata = new grpc.Metadata();
4848
readonly status: StatusServiceClient;

0 commit comments

Comments
 (0)