@samitouri / QOSami-HFS / commits / cf52c285

dev: print upnp

Massimo Melina committed Nov 28, 2023 at 11:07 UTC cf52c2859fb53cab43d89bd2c3c0213ce662a238
1 file changed +3 -1
src/nat.ts
+3 -1
@@ -31,7 +31,9 @@ export const upnpClient = new Client({ timeout: 4_000 })
31 const originalMethod = upnpClient.getGateway
32 // other client methods call getGateway too, so this will ensure they reuse this same result
33 upnpClient.getGateway = debounceAsync(() => originalMethod.apply(upnpClient), 0, { retain: HOUR, retainFailure: 30_000 })
34 -upnpClient.getGateway().catch(() => {})
34 +upnpClient.getGateway().then(res => {
35 + console.debug('upnp', res.gateway.description)
36 +}, () => {})
37
38 // poll external ip
39 repeat(10 * MINUTE, () => upnpClient.getPublicIp().then(v => {