Deny UNIX domain socket (#9802)

* Deny UNIX domain socket

* got v12ならこれが使える?
This commit is contained in:
MeiMei 2023-02-05 13:51:59 +09:00 committed by GitHub
parent c9ec08704e
commit 505ecf6c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {