Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn internet connection off completely #50

Open
nxz91 opened this issue Aug 6, 2020 · 2 comments
Open

Turn internet connection off completely #50

nxz91 opened this issue Aug 6, 2020 · 2 comments
Labels

Comments

@nxz91
Copy link

nxz91 commented Aug 6, 2020

Thank you for the great tool!

It seems to be impossible to turn the internet connection off completely, neither does a profile exist nor does setting upload and download to zero seem to work:

➜  web git:(feat/track-priority) ✗ throttle --up 0 --down 0
Using default profile
Started throttler: Down:780kbit/s Up:330kbit/s RTT:200ms

Any ideas?

@nxz91
Copy link
Author

nxz91 commented Aug 6, 2020

Why does anyone need this? It takes >25 seconds to turn the Wifi connection off and back on, so a command that would make this immediate would peace the hasty developer's mind.

@soulgalore
Copy link
Member

I think the problem is that 0 is interpreted as false so that when you run:

bin/index.js --up 0 --down 0
Error: You need to at least set one of up/down/rtt.

I can test and merge a PR if someone interested in fixing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants