Skip to content

Commit

Permalink
Apply ethernet config to dummy device
Browse files Browse the repository at this point in the history
  • Loading branch information
jcronenberg committed Dec 8, 2023
1 parent 9145cfa commit 1d07dbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/agama-dbus-server/src/network/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ impl Connection {
}

pub fn is_ethernet(&self) -> bool {
matches!(self, Connection::Loopback(_)) || matches!(self, Connection::Ethernet(_))
matches!(self, Connection::Loopback(_))
|| matches!(self, Connection::Ethernet(_))
|| matches!(self, Connection::Dummy(_))
}

pub fn mac_address(&self) -> String {
Expand Down

0 comments on commit 1d07dbc

Please sign in to comment.