mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
network: nat now ignores local CIDRs and correctly represents ethernet addresses in the key
This commit is contained in:
@ -117,7 +117,7 @@ impl NetworkBackend {
|
||||
let mut udev = ChannelDevice::new(1500, tx_sender.clone());
|
||||
let mac = MacAddr6::random();
|
||||
let mac = smoltcp::wire::EthernetAddress(mac.to_array());
|
||||
let nat = NatRouter::new(proxy, mac, tx_sender.clone());
|
||||
let nat = NatRouter::new(proxy, mac, addresses.clone(), tx_sender.clone());
|
||||
let mac = HardwareAddress::Ethernet(mac);
|
||||
let config = Config::new(mac);
|
||||
let mut iface = Interface::new(config, &mut udev, Instant::now());
|
||||
|
Reference in New Issue
Block a user