Merge pull request #9295 from likebreath/0318/fix_clh_default_netconfig

runtime-rs: ch: Provide valid default value for NetConfig
This commit is contained in:
Alex Lyn 2024-03-19 15:17:18 +08:00 committed by GitHub
commit 7af2df408e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,8 +267,8 @@ impl Default for NetConfig {
fn default() -> Self {
NetConfig {
tap: None,
ip: Ipv4Addr::new(0, 0, 0, 0),
mask: Ipv4Addr::new(0, 0, 0, 0),
ip: Ipv4Addr::new(192, 168, 249, 1),
mask: Ipv4Addr::new(255, 255, 255, 0),
mac: MacAddr::default(),
host_mac: None,
mtu: None,