Change linkTypeDetail to be written to the upper-scoped-var

This commit is contained in:
Ruakij 2021-12-07 14:53:11 +01:00
parent 230c75ffd4
commit a1faee8303

View File

@ -90,7 +90,7 @@ if(errorMsg){
if(!linkTypeId && data.match(/^(tcpdump: )?listening on/i)){ // Grab first data containing listen-info if proper header was found
const linkType = data.match(/((?<=link-type ))([a-z].*?) \(.*?\)(?=,)/i)[0];
const linkTypeData = linkType.match(/(\S*) (.*)/i);
const linkTypeId = linkTypeData[1];
linkTypeId = linkTypeData[1];
const linkTypeDetail = linkTypeData[2];
if(linkTypeId !== "IEEE802_11_RADIO"){