Deny UNIX domain socket (#9802)
* Deny UNIX domain socket * got v12ならこれが使える?
This commit is contained in:
parent
c9ec08704e
commit
505ecf6c1f
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user