aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/net_dns.rs
diff options
context:
space:
mode:
authorGhaith Oueslati <[email protected]>2023-06-12 14:28:23 +0100
committerGitHub <[email protected]>2023-06-12 14:28:23 +0100
commitcf83f6820cf2c6ece607cd60cfdab9d5e47efd04 (patch)
tree6485dacac7e61c4378ac522e709edb0a86bd7523 /examples/std/src/bin/net_dns.rs
parent2dd5ce83ec0421564e85b667f5dabd592f313e5c (diff)
parent2d89cfb18f00aefbfa108728dfea3398e80ea3e4 (diff)
Merge pull request #3 from OueslatiGhaith/master
fix merge conflicts
Diffstat (limited to 'examples/std/src/bin/net_dns.rs')
-rw-r--r--examples/std/src/bin/net_dns.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/std/src/bin/net_dns.rs b/examples/std/src/bin/net_dns.rs
index 932ac5831..65b5a2cd9 100644
--- a/examples/std/src/bin/net_dns.rs
+++ b/examples/std/src/bin/net_dns.rs
@@ -40,14 +40,14 @@ async fn main_task(spawner: Spawner) {
40 40
41 // Choose between dhcp or static ip 41 // Choose between dhcp or static ip
42 let config = if opts.static_ip { 42 let config = if opts.static_ip {
43 Config::Static(embassy_net::StaticConfig { 43 Config::ipv4_static(embassy_net::StaticConfigV4 {
44 address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 1), 24), 44 address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 1), 24),
45 dns_servers: Vec::from_slice(&[Ipv4Address::new(8, 8, 4, 4).into(), Ipv4Address::new(8, 8, 8, 8).into()]) 45 dns_servers: Vec::from_slice(&[Ipv4Address::new(8, 8, 4, 4).into(), Ipv4Address::new(8, 8, 8, 8).into()])
46 .unwrap(), 46 .unwrap(),
47 gateway: Some(Ipv4Address::new(192, 168, 69, 100)), 47 gateway: Some(Ipv4Address::new(192, 168, 69, 100)),
48 }) 48 })
49 } else { 49 } else {
50 Config::Dhcp(Default::default()) 50 Config::dhcpv4(Default::default())
51 }; 51 };
52 52
53 // Generate random seed 53 // Generate random seed