net: Support dual stack IP
This commit is contained in:
@ -53,13 +53,13 @@ async fn main_task(spawner: Spawner) {
|
||||
|
||||
// Choose between dhcp or static ip
|
||||
let config = if opts.static_ip {
|
||||
Config::StaticV4(embassy_net::StaticConfigV4 {
|
||||
Config::ipv4_static(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)),
|
||||
})
|
||||
} else {
|
||||
Config::Dhcp(Default::default())
|
||||
Config::dhcpv4(Default::default())
|
||||
};
|
||||
|
||||
// Generate random seed
|
||||
|
Reference in New Issue
Block a user