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