Skip to content

Commit 0296586

Browse files
committed
Stop HTK server listening on non-localhost interfaces
1 parent 38f31b5 commit 0296586

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/httptoolkit-server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export class HttpToolkitServer {
128128
}
129129

130130
async start() {
131-
await this.graphql.start({});
131+
await this.graphql.start(<any> {
132+
// Hacky solution that lets us limit the server to only localhost,
133+
// and override the port from 4000 to something less likely to conflict.
134+
port: { port: 45457, host: 'localhost' }
135+
});
132136
}
133137
};

0 commit comments

Comments
 (0)