mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 15:33:57 +00:00
fix
This commit is contained in:
@@ -12,6 +12,7 @@ async function getPublicIp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getMacAddress() {
|
function getMacAddress() {
|
||||||
|
try {
|
||||||
const interfaces = os.networkInterfaces();
|
const interfaces = os.networkInterfaces();
|
||||||
for (let iface of Object.values(interfaces)) {
|
for (let iface of Object.values(interfaces)) {
|
||||||
for (let config of iface) {
|
for (let config of iface) {
|
||||||
@@ -21,6 +22,9 @@ function getMacAddress() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '00:00:00:00:00:00';
|
return '00:00:00:00:00:00';
|
||||||
|
} catch (err) {
|
||||||
|
return '00:00:00:00:00:00';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getHardwareFingerprint() {
|
async function getHardwareFingerprint() {
|
||||||
|
|||||||
Reference in New Issue
Block a user