This commit is contained in:
Johannes Zellner
2024-11-05 14:24:40 +01:00
parent c03eff8da2
commit 18e5365104

View File

@@ -245,7 +245,7 @@ async function getAddressesForPort53() {
const addresses = [];
for (const phy of physicalDevices) {
const [error, output] = await safe(shell.spawn('ip', ['-f', 'inet', '-j', 'addr', 'show', 'dev', phy.name, 'scope', 'global'], { encoding: 'utf8 '}));
const [error, output] = await safe(shell.spawn('ip', ['-f', 'inet', '-j', 'addr', 'show', 'dev', phy.name, 'scope', 'global'], { encoding: 'utf8' }));
if (error) continue;
const inet = safe.JSON.parse(output) || [];
for (const r of inet) {