Rename StaticConfig to StaticConfigV4
This commit is contained in:
@ -53,7 +53,7 @@ async fn main_task(spawner: Spawner) {
|
||||
|
||||
// Choose between dhcp or static ip
|
||||
let config = if opts.static_ip {
|
||||
Config::Static(embassy_net::StaticConfig {
|
||||
Config::StaticV4(embassy_net::StaticConfigV4 {
|
||||
address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24),
|
||||
dns_servers: Vec::new(),
|
||||
gateway: Some(Ipv4Address::new(192, 168, 69, 1)),
|
||||
|
Reference in New Issue
Block a user