mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2026-10-25 14:20:05 -05:00
Fix on-a-stick support.
This commit is contained in:
1 parent
d741a24ed2
commit
bc5a6d68a1
1 file changed
+2
-2
@@ -84,7 +84,7 @@ pub(crate) fn map_single_interface_mode(
|
||||
|
||||
// VLANs - Internet
|
||||
let mut key: u32 = (interface_name_to_index(&interface)? << 16) | internet_vlan;
|
||||
let mut val = BifrostVlan { redirect_to: mapping.redirect_to };
|
||||
let mut val = BifrostVlan { redirect_to: lan_vlan };
|
||||
vlan_map.insert(&mut key, &mut val)?;
|
||||
info!(
|
||||
"Mapped bifrost VLAN: {}:{} => {}",
|
||||
@@ -94,7 +94,7 @@ pub(crate) fn map_single_interface_mode(
|
||||
|
||||
// VLANs - LAN
|
||||
let mut key: u32 = (interface_name_to_index(&interface)? << 16) | lan_vlan;
|
||||
let mut val = BifrostVlan { redirect_to: mapping.redirect_to };
|
||||
let mut val = BifrostVlan { redirect_to: internet_vlan };
|
||||
vlan_map.insert(&mut key, &mut val)?;
|
||||
info!(
|
||||
"Mapped bifrost VLAN: {}:{} => {}",
|
||||
|
||||
Reference in new issue
Block a user