Fix globalAgent assignment
| @@ -1,9 +1,10 @@ | ||
| 1 | 1 | import *{ ascreateRequire http} from 'node:httpmodule'; |
| 2 | -import * as https from 'node:https'; | |
| 3 | - | |
| 4 | 2 | import { ProxyAgent } from 'proxy-agent'; |
| 5 | 3 | import { isValidUrl, color } from './util.js'; |
| 6 | 4 | |
| 5 | +const require = createRequire(import.meta.url); | |
| 6 | +const http = require('http'); | |
| 7 | +const https = require('https'); | |
| 7 | 8 | const LOG_HEADER = '[Request Proxy]'; |
| 8 | 9 | |
| 9 | 10 | /** |