friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
397 stars 161 forks source link

linux-disconnect.js doesn't disconnect due bad command #9

Closed starfishmod closed 7 years ago

starfishmod commented 7 years ago

the current command generates nmcli dev disconnect iface wlan0 if iface is set this should be nmcli dev disconnect wlan0 change

if (config.iface) {
            commandStr += " iface " + config.iface;
        }

to

if (config.iface) {
            commandStr += " " + config.iface;
        }
friedrith commented 7 years ago

Ok i will be correct it in the next version (later this day I think).

friedrith commented 7 years ago

It has been fixed in version 1.2.3 now available on npm

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.