Fix server example

Make the IPv6 address used in the server example the same as the IPv6
address used in the others.

Closes: #217
Approved by: dlrobertson
This commit is contained in:
Dan Robertson 2018-05-18 20:22:13 +00:00 committed by Homu
parent f501198a68
commit 3a3ac474f6
1 changed files with 2 additions and 2 deletions

View File

@ -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)