Add non-Windows nettap stubs
This commit is contained in:
parent
2d832c2b63
commit
fb6b1ae25e
5 changed files with 196 additions and 142 deletions
|
|
@ -87,7 +87,12 @@ func runVM(passthroughArg string, fn func(context.Context, *vm.VM, *vm.FileManag
|
|||
return 1
|
||||
}
|
||||
|
||||
tapNameToUse := nettap.NewRandomTapName()
|
||||
tapNameToUse, err := nettap.NewRandomTapName()
|
||||
if err != nil {
|
||||
slog.Error("Failed to generate new network tap name", "error", err.Error())
|
||||
return 1
|
||||
}
|
||||
|
||||
knownAllocs, err := store.ListNetTapAllocations()
|
||||
if err != nil {
|
||||
slog.Error("Failed to list net tap allocations", "error", err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue