xiongzhu hace 2 años
padre
commit
a2abbdfb00
Se han modificado 3 ficheros con 17 adiciones y 0 borrados
  1. 1 0
      package.json
  2. 1 0
      src/danmu/danmu.service.ts
  3. 15 0
      yarn.lock

+ 1 - 0
package.json

@@ -58,6 +58,7 @@
     "express-handlebars": "^7.0.6",
     "handlebars": "^4.7.7",
     "hbs": "^4.2.0",
+    "https-proxy-agent": "^7.0.2",
     "ioredis": "^5.3.2",
     "isomorphic-fetch": "^3.0.0",
     "keyv": "^4.5.2",

+ 1 - 0
src/danmu/danmu.service.ts

@@ -12,6 +12,7 @@ import { Room } from '../room/entities/room.entity'
 import { mkdtempSync, rmSync } from 'fs'
 import { FileService } from 'src/file/file.service'
 import path = require('path')
+import { HttpsProxyAgent } from 'https-proxy-agent'
 
 @Injectable()
 export class DanmuService implements OnModuleInit {

+ 15 - 0
yarn.lock

@@ -1849,6 +1849,13 @@ agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2:
   dependencies:
     debug "4"
 
+agent-base@^7.0.2:
+  version "7.1.0"
+  resolved "https://registry.npmmirror.com/agent-base/-/agent-base-7.1.0.tgz#536802b76bc0b34aa50195eb2442276d613e3434"
+  integrity sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==
+  dependencies:
+    debug "^4.3.4"
+
 agentkeepalive@^3.4.1:
   version "3.5.2"
   resolved "https://registry.npmmirror.com/agentkeepalive/-/agentkeepalive-3.5.2.tgz#a113924dd3fa24a0bc3b78108c450c2abee00f67"
@@ -4001,6 +4008,14 @@ https-proxy-agent@5, https-proxy-agent@^5.0.0:
     agent-base "6"
     debug "4"
 
+https-proxy-agent@^7.0.2:
+  version "7.0.2"
+  resolved "https://registry.npmmirror.com/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz#e2645b846b90e96c6e6f347fb5b2e41f1590b09b"
+  integrity sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==
+  dependencies:
+    agent-base "^7.0.2"
+    debug "4"
+
 httpx@^2.2.0, httpx@^2.2.6:
   version "2.2.7"
   resolved "https://registry.npmmirror.com/httpx/-/httpx-2.2.7.tgz#1e34198146e32ca3305a66c11209559e1cbeba09"