Skip to content

Commit

Permalink
[qemu] require authorization for non bridged networks
Browse files Browse the repository at this point in the history
  • Loading branch information
sharder996 committed Jul 19, 2024
1 parent 2338101 commit 9f5875c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ void mp::QemuPlatformDetail::set_authorization(std::vector<NetworkInterfaceInfo>
const auto& br_nomenclature = MP_PLATFORM.bridge_nomenclature();

for (auto& net : networks)
if (net.needs_authorization && net.type == "ethernet" &&
mpu::find_bridge_with(networks, net.id, br_nomenclature))
net.needs_authorization = false;
if (net.type == "ethernet" && !mpu::find_bridge_with(networks, net.id, br_nomenclature))
net.needs_authorization = true;
}

std::string mp::QemuPlatformDetail::create_bridge_with(const NetworkInterfaceInfo& interface) const
Expand Down

0 comments on commit 9f5875c

Please sign in to comment.