mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 05:23:08 +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: {
|
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 a new issue