bitbar-dnscrypt-proxy-switcher
bitbar-dnscrypt-proxy-switcher copied to clipboard
fix get_current_service function
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.