serock / pla-util

A power line adapter utility for Linux
GNU General Public License v3.0
42 stars 5 forks source link

asking for interface only if needed #8

Closed RubberDucky007 closed 2 years ago

RubberDucky007 commented 2 years ago

Is it possible to eliminate the need to give the interface name on each run? Maybe It could discover itself on which interface is an supported adapter. Or maybe asking for the right interface. But only if there are more than one interfaces.

serock commented 2 years ago

I think I can get the utility to use the first non-loopback, up and running interface by default. If the wrong interface is chosen and the command fails, then the user could retry by providing the interface on the command line.

serock commented 2 years ago

@RubberDucky007 - A pre-release of pla-util 2.0.0 is available. What I mentioned in my previous comment has been implemented in the pre-release. However, please note that the command syntax has changed and that the program now depends on libpcap.

serock commented 2 years ago

Release 2.0.0 is available.