File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ while true; do
192192 new_mode=" none"
193193 case " $iface " in
194194 wlan* |tun* ) new_mode=" Wi-Fi" ;;
195- rmnet* |ccmni* ) new_mode=" Cellular" ;;
195+ * rmnet* |* ccmni* ) new_mode=" Cellular" ;;
196196 * ) new_mode=" none" ;;
197197 esac
198198
Original file line number Diff line number Diff 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" ) || active_iface . startsWith ( "tun" ) ? "Wi-Fi 🛜" : "Unknown ⁉️" ;
17+ active_iface_type = active_iface . match ( "rmnet" ) || active_iface . match ( "rmnet ") ? "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 🛜" )
You can’t perform that action at this time.
0 commit comments