Change linkTypeDetail to be written to the upper-scoped-var
This commit is contained in:
parent
230c75ffd4
commit
a1faee8303
@ -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"){
|
||||
|
Loading…
x
Reference in New Issue
Block a user