Skip to content

Commit

Permalink
Update src/vpn.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
luozijun committed Jan 15, 2018
1 parent 3857fb3 commit abcbf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vpnd.rs
Expand Up @@ -320,7 +320,7 @@ fn run(config: &ServerConfig) {
}
},
2 => {
let mut packet = &mut udp_buf[1..size];
let packet = &udp_buf[1..size];

let ipv4_packet = wire::Ipv4Packet::new(&packet);
let dst_ip = Ipv4Addr::from(ipv4_packet.dst_addr().0);
Expand Down

0 comments on commit abcbf33

Please sign in to comment.