Wait for interface in main

This commit is contained in:
Bryan Boreham committed 2014-10-20 17:26:11 +01:00
1 parent b8a06521c0
commit bce06d2e9b
3 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time"
)
func ensureInterface(ifaceName string, wait int) (iface *net.Interface, err error) {
func EnsureInterface(ifaceName string, wait int) (iface *net.Interface, err error) {
iface, err = findInterface(ifaceName)
if err == nil || wait == 0 {
return