소스 검색

l2tp bug fix

Sunz3r 7 년 전
부모
커밋
ccaf44a584
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      ext-respondd.py

+ 3 - 1
ext-respondd.py

@@ -130,7 +130,9 @@ def getBat0_Interfaces():
         if_group = ""
         if "fastd" in config and nif == config["fastd"]: # keep for compatibility
             if_group = "tunnel"
-        elif ("mesh-vpn" in config and nif in config["mesh-vpn"]) or nif.startswith("l2tp"):
+        elif nif.find("l2tp") != -1:
+            if_group = "l2tp"
+        elif ("mesh-vpn" in config and nif in config["mesh-vpn"]):
             if_group = "tunnel"
         elif "mesh-wlan" in config and nif in config["mesh-wlan"]:
             if_group = "wireless"