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: {
|
retry: {
|
||||||
limit: 0,
|
limit: 0,
|
||||||
},
|
},
|
||||||
|
enableUnixSockets: false,
|
||||||
}).on('response', (res: Got.Response) => {
|
}).on('response', (res: Got.Response) => {
|
||||||
if ((process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') && !this.config.proxy && res.ip) {
|
if ((process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'test') && !this.config.proxy && res.ip) {
|
||||||
if (this.isPrivateIp(res.ip)) {
|
if (this.isPrivateIp(res.ip)) {
|
||||||
|
|
Loading…
Reference in New Issue