MCPcopy
hub / github.com/agalwood/Motrix / initUPnPManager

Method initUPnPManager

src/main/Application.js:304–317  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302 }
303
304 initUPnPManager () {
305 this.upnp = new UPnPManager()
306
307 this.watchUPnPEnabledChange()
308
309 this.watchUPnPPortsChange()
310
311 const enabled = this.configManager.getUserConfig('enable-upnp')
312 if (!enabled) {
313 return
314 }
315
316 this.startUPnPMapping()
317 }
318
319 async startUPnPMapping () {
320 const btPort = this.configManager.getSystemConfig('listen-port')

Callers 1

initMethod · 0.95

Calls 4

watchUPnPPortsChangeMethod · 0.95
startUPnPMappingMethod · 0.95
getUserConfigMethod · 0.80

Tested by

no test coverage detected