mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-27 20:13:09 +02:00
Deny UNIX domain socket (#9802)
* Deny UNIX domain socket * got v12ならこれが使える?
This commit is contained in:
parent
c9ec08704e
commit
505ecf6c1f
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue