Skip to content

Commit dafbd97

Browse files
committed
Add Support for tun interface
1 parent 5d42b65 commit dafbd97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module/service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ while true; do
191191

192192
new_mode="none"
193193
case "$iface" in
194-
wlan*) new_mode="Wi-Fi" ;;
194+
wlan*|tun*) new_mode="Wi-Fi" ;;
195195
rmnet*|ccmni*) new_mode="Cellular" ;;
196196
*) new_mode="none" ;;
197197
esac

module/webroot/js/home.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export async function updateModuleStatus () {
1414
module_status = (await getModuleActiveState()) == true ? "Enabled ✅" : "Disabled ❌";
1515
active_iface = await get_active_iface();
1616
active_iface = active_iface ? active_iface : "None";
17-
active_iface_type = active_iface.startsWith("rmnet") || active_iface.startsWith("ccmni") ? "Cellular 📶" : active_iface.startsWith("wlan") ? "Wi-Fi 🛜" : "Unknown ⁉️";
17+
active_iface_type = active_iface.startsWith("rmnet") || active_iface.startsWith("ccmni") ? "Cellular 📶" : active_iface.startsWith("wlan") || active_iface.startsWith("tun") ? "Wi-Fi 🛜" : "Unknown ⁉️";
1818
active_algorithm = await get_active_algorithm();
1919
active_InitcwndInitrwndValue = await getInitcwndInitrwndValue();
2020
if(active_iface_type == "Wi-Fi 🛜")

0 commit comments

Comments
 (0)