Skip to content

Commit

Permalink
improve bin/lando shebang and set ipv4 preference via dns mod
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 24, 2024
1 parent 731e560 commit 35c97eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/lando
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node --dns-result-order=ipv4first
#!/usr/bin/env node


/**
* Main CLI entrypoint that wraps @lando/core@3 or @lando/core@4
Expand All @@ -9,7 +10,12 @@

'use strict';

// mods
// set this first for all other downstream concerns
const dns = require('dns');
// Set DNS result order to IPv4 first
dns.setDefaultResultOrder('ipv4first');

// other mods
const fs = require('fs');
const path = require('path');

Expand Down

0 comments on commit 35c97eb

Please sign in to comment.