Support wireguard linktype (#1077)

This commit is contained in:
Tim Wilkinson 2024-01-21 20:20:21 -08:00 committed by GitHub
parent 493dd98534
commit 29cc59ac9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ function model.getOLSRInterfaceType(iface)
it="DTD"
elseif string.match(iface,"tun") then
it="TUN"
elseif string.match(iface,"wg") then
it="WIREGUARD"
end
return it
end
@ -94,7 +96,7 @@ function model.getCurrentNeighbors(RFinfo)
end
info[mainip]['olsrInterface']=v['olsrInterface']
info[mainip]['linkType']= model.getOLSRInterfaceType(v['olsrInterface']) -- RF or DTD or TUN
info[mainip]['linkType']= model.getOLSRInterfaceType(v['olsrInterface']) -- RF or DTD or TUN or WIREGUARD
info[mainip]['linkQuality']=v['linkQuality']
info[mainip]['neighborLinkQuality']=v['neighborLinkQuality']