mirror of https://github.com/aredn/aredn.git
Support wireguard linktype (#1077)
This commit is contained in:
parent
493dd98534
commit
29cc59ac9c
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in New Issue