Browse Source

add workaround for meshviewer/yanic with l2tp

Yanic and Meshviewer doesnt support l2tp-Tunneltype
https://github.com/FreifunkBremen/yanic/issues/69
Sunz3r 7 years ago
parent
commit
0219312335
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ext-respondd.py

+ 6 - 0
ext-respondd.py

@@ -150,6 +150,12 @@ def getBat0_Interfaces():
 
         j[if_group].append(getDevice_MAC(nif))
 
+    if "l2tp" in j:
+        if "tunnel" in j:
+            j["tunnel"] = j["tunnel"] + j["l2tp"]
+        else:
+            j["tunnel"] = j["l2tp"]
+
     return j
 
 def getTraffic():