mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
BUGFIX: We weren't correctly honouring requests to use a Linux bridge. This patch fixes it.
This commit is contained in:
parent
3ab165a591
commit
7180dd7950
@ -207,6 +207,7 @@ pub fn attach_xdp_and_tc_to_interface(
|
|||||||
// Attach to the ingress IF it is configured
|
// Attach to the ingress IF it is configured
|
||||||
if let Ok(etc) = lqos_config::load_config() {
|
if let Ok(etc) = lqos_config::load_config() {
|
||||||
if let Some(bridge) = &etc.bridge {
|
if let Some(bridge) = &etc.bridge {
|
||||||
|
if bridge.use_xdp_bridge {
|
||||||
// Enable "promiscuous" mode on interfaces
|
// Enable "promiscuous" mode on interfaces
|
||||||
info!("Enabling promiscuous mode on {}", &bridge.to_internet);
|
info!("Enabling promiscuous mode on {}", &bridge.to_internet);
|
||||||
std::process::Command::new("/bin/ip")
|
std::process::Command::new("/bin/ip")
|
||||||
@ -229,6 +230,7 @@ pub fn attach_xdp_and_tc_to_interface(
|
|||||||
return Err(Error::msg("Unable to attach TC Ingress to interface"));
|
return Err(Error::msg("Unable to attach TC Ingress to interface"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(stick) = &etc.single_interface {
|
if let Some(stick) = &etc.single_interface {
|
||||||
// Enable "promiscuous" mode on interface
|
// Enable "promiscuous" mode on interface
|
||||||
|
Loading…
Reference in New Issue
Block a user