Skip to content
Snippets Groups Projects
Unverified Commit 505ecf6c authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

Deny UNIX domain socket (#9802)

* Deny UNIX domain socket

* got v12ならこれが使える?
parent c9ec0870
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,7 @@ export class DownloadService {
retry: {
limit: 0,
},
enableUnixSockets: false,
}).on('response', (res: Got.Response) => {
if ((process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') && !this.config.proxy && res.ip) {
if (this.isPrivateIp(res.ip)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment