shell: exec encoding is utf8 by default and no shell
explicitly mark calls that require the shell
This commit is contained in:
@@ -247,7 +247,7 @@ async function getAddressesForPort53() {
|
||||
|
||||
const addresses = [];
|
||||
for (const phy of physicalDevices) {
|
||||
const [error, output] = await safe(shell.promises.exec('getAddressesForPort53', `ip -f inet -j addr show dev ${phy.name} scope global`, { encoding: 'utf8' }));
|
||||
const [error, output] = await safe(shell.promises.exec('getAddressesForPort53', `ip -f inet -j addr show dev ${phy.name} scope global`, {}));
|
||||
if (error) continue;
|
||||
const inet = safe.JSON.parse(output) || [];
|
||||
for (const r of inet) {
|
||||
|
||||
Reference in New Issue
Block a user