Skip to content

Commit

Permalink
Fix server example
Browse files Browse the repository at this point in the history
Make the IPv6 address used in the server example the same as the IPv6
address used in the others.
  • Loading branch information
dlrobertson committed May 18, 2018
1 parent 375b026 commit 968cc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ fn main() {
let ethernet_addr = EthernetAddress([0x02, 0x00, 0x00, 0x00, 0x00, 0x01]);
let ip_addrs = [
IpCidr::new(IpAddress::v4(192, 168, 69, 1), 24),
IpCidr::new(IpAddress::v6(0xfdbe, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x002a), 64)
IpCidr::new(IpAddress::v6(0xfdaa, 0, 0, 0, 0, 0, 0, 1), 64),
IpCidr::new(IpAddress::v6(0xfe80, 0, 0, 0, 0, 0, 0, 1), 64)
];
let mut iface = EthernetInterfaceBuilder::new(device)
.ethernet_addr(ethernet_addr)
Expand Down

0 comments on commit 968cc04

Please sign in to comment.