Wait for interface in main
This commit is contained in:
1 parent
b8a06521c0
commit
bce06d2e9b
3 files changed
+14
-14
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user