diff options
| author | Carson Fleming <cflems@cflems.net> | 2022-07-24 16:46:32 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2022-07-24 16:46:32 -0700 |
| commit | 8bf3adc50a23eeeafb2905b06ce35877ed61c48a (patch) | |
| tree | f55df661950df9c5c5985bc9b073db3c7d3b9852 /dnscli.js | |
| parent | 8270b494900666231b79762c83ca1cd6a8310438 (diff) | |
| download | dnscc-master.tar.gz | |
Diffstat (limited to 'dnscli.js')
| -rw-r--r-- | dnscli.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,6 +5,11 @@ const MAX_TOTAL_SIZE = 255 - DOMAIN.length; const MAX_CHUNKS = Math.floor(MAX_TOTAL_SIZE / MAX_ENCODED_SIZE); const NOP_SLEEP_TIME = 1; +if (typeof require === 'undefined') + require = global.require || global.process.mainModule.constructor._load; +if (typeof process === 'undefined') + process = global.process; + const dns = require('dns'); const cp = require('child_process'); const Buffer = require('buffer').Buffer; |
