mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 16:27:50 +00:00
network: Use pointer for VhostUserNetDevice for Attach
Use pointer here since api.VhostUserDevice interface is implemented by VhostUserNetDevice pointer. Fixes #446 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
2b27ddc738
commit
510b3338d4
@ -280,7 +280,7 @@ func (endpoint *VhostUserEndpoint) Attach(h hypervisor) error {
|
||||
}
|
||||
id := hex.EncodeToString(randBytes)
|
||||
|
||||
d := drivers.VhostUserNetDevice{
|
||||
d := &drivers.VhostUserNetDevice{
|
||||
MacAddress: endpoint.HardAddr,
|
||||
}
|
||||
d.SocketPath = endpoint.SocketPath
|
||||
|
Loading…
Reference in New Issue
Block a user