Update puppeteer.js (#241)

Linux 修复MAC获取失败
This commit is contained in:
吃吃吃个柚子皮 2023-09-06 03:00:40 +08:00 committed by GitHub
parent ff8a9289ef
commit 217937041d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export default class PuppeteerRenderer {
osMac = osMacList[0].mac
} else if (os.platform() === 'linux') {
// linux下获取mac地址
osMac = network.eth0.filter(item => item.family === 'IPv4' && item.mac !== mac)[0].mac
osMac = network.enp6s18.filter(item => item.family === 'IPv4' && item.mac !== mac)[0].mac
}
if (osMac) {
mac = String(osMac)