jedisct1 / bitbar-dnscrypt-proxy-switcher

BitBar plugin to control dnscrypt-proxy usage
MIT License
151 stars 22 forks source link

fix get_current_service function #9

Open arainho opened 1 year ago

arainho commented 1 year ago

When using multiple "USB to LAN" interfaces with name such as "USB 10/100/1000 LAN (enX)" the method get_current_servicedoes not detect the "Hardware Port" (aka service name) correctly.

Also changed the while loop so that the currentservice global variable can be defined properly.