magnific0 / wondershaper

Command-line utility for limiting an adapter's bandwidth
GNU General Public License v2.0
1.71k stars 256 forks source link

wondershaper -p -c doesn't work #74

Closed mattiasb closed 2 years ago

mattiasb commented 2 years ago

If you have a config file like this:

[wondershaper]

# Adapter
IFACE="eno1"

… I would assume that the -p flag would would provide the adapter to the -c flag.

That is, running the following, would basically be a no-op:

$ wondershaper -p     # Turn shaping on (according to config).
$ wondershaper -p -c # Turn off all shaping for the NIC defined in the config.

… However this is what I get when running wondershaper -p -c:

$ sudo wondershaper -p -c                                                                                                                                                                                                        
Please supply the adapter name for the mode.
[…]