Improved autodiscovery: now can handle any kind of network interface specification