Browse Source

feat(nocodb): set default result order to ipv4first

ref:https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
a398fb4245
  1. 4
      packages/nocodb/src/run/docker.ts
  2. 4
      packages/nocodb/src/run/dockerEntry.ts
  3. 4
      packages/nocodb/src/run/dockerRunMysql.ts
  4. 4
      packages/nocodb/src/run/dockerRunPG.ts
  5. 4
      packages/nocodb/src/run/dockerRunPG_CyQuick.ts
  6. 5
      packages/nocodb/src/run/local.ts
  7. 4
      packages/nocodb/src/run/testDocker.ts

4
packages/nocodb/src/run/docker.ts

@ -1,7 +1,11 @@
import dns from 'node:dns';
import cors from 'cors';
import express from 'express';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.disable('etag');

4
packages/nocodb/src/run/dockerEntry.ts

@ -1,7 +1,11 @@
import dns from 'node:dns';
import express from 'express';
import cors from 'cors';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.use(cors());

4
packages/nocodb/src/run/dockerRunMysql.ts

@ -1,7 +1,11 @@
import dns from 'node:dns';
import cors from 'cors';
import express from 'express';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.disable('etag');

4
packages/nocodb/src/run/dockerRunPG.ts

@ -1,7 +1,11 @@
import dns from 'node:dns';
import cors from 'cors';
import express from 'express';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.disable('etag');

4
packages/nocodb/src/run/dockerRunPG_CyQuick.ts

@ -1,7 +1,11 @@
import dns from 'node:dns';
import cors from 'cors';
import express from 'express';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.disable('etag');

5
packages/nocodb/src/run/local.ts

@ -1,9 +1,12 @@
import dns from 'node:dns';
import path from 'path';
import cors from 'cors';
import express from 'express';
import Noco from '../Noco';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.use(cors());

4
packages/nocodb/src/run/testDocker.ts

@ -1,3 +1,4 @@
import dns from 'node:dns';
import axios from 'axios';
import cors from 'cors';
import express from 'express';
@ -6,6 +7,9 @@ import Noco from '../Noco';
process.env.NC_VERSION = '0009044';
// ref: https://github.com/nodejs/node/issues/40702#issuecomment-1103623246
dns.setDefaultResultOrder('ipv4first');
const server = express();
server.enable('trust proxy');
server.disable('etag');

Loading…
Cancel
Save