Skip to content

Commit

Permalink
Adjust Node.js DNS order
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Apr 24, 2024
1 parent 9c98969 commit 0ce8616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/zed-node/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import {
jsonHeader,
} from '@brimdata/zed-js';
import nodeFetch from 'node-fetch';
import * as dns from 'node:dns';

// eslint-disable-next-line
// @ts-ignore
dns.setDefaultResultOrder('ipv4first');

export class Client extends BaseClient {
// eslint-disable-next-line
Expand Down
2 changes: 1 addition & 1 deletion packages/zed-node/src/lake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Lake {
const args = [
'serve',
'-l',
':' + this.port,
this.addr(),
'-lake',
this.root,
'-manage=5m',
Expand Down

0 comments on commit 0ce8616

Please sign in to comment.