File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl NetworkVersion for Ripng {
35
35
SocketAddr :: from ( ( Ipv6Addr :: UNSPECIFIED , Self :: UDP_PORT ) ) ;
36
36
let socket =
37
37
capabilities:: raise ( || UdpSocket :: bind_reuseaddr ( sockaddr) ) ?;
38
- socket. bind_device ( Some ( ifname. as_bytes ( ) ) ) . unwrap ( ) ;
38
+ socket. bind_device ( Some ( ifname. as_bytes ( ) ) ) ? ;
39
39
socket. set_multicast_loop_v6 ( false ) ?;
40
40
socket. set_ipv6_tclass ( libc:: IPTOS_PREC_INTERNETCONTROL ) ?;
41
41
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ impl NetworkVersion for Ripv2 {
35
35
SocketAddr :: from ( ( Ipv4Addr :: UNSPECIFIED , Self :: UDP_PORT ) ) ;
36
36
let socket =
37
37
capabilities:: raise ( || UdpSocket :: bind_reuseaddr ( sockaddr) ) ?;
38
- socket. bind_device ( Some ( ifname. as_bytes ( ) ) ) . unwrap ( ) ;
38
+ socket. bind_device ( Some ( ifname. as_bytes ( ) ) ) ? ;
39
39
socket. set_multicast_loop_v4 ( false ) ?;
40
40
socket. set_multicast_ttl_v4 ( 1 ) ?;
41
41
socket. set_ipv4_tos ( libc:: IPTOS_PREC_INTERNETCONTROL ) ?;
You can’t perform that action at this time.
0 commit comments