remove default route
This commit is contained in:
parent
4c0f101be8
commit
85190447be
@ -68,7 +68,6 @@ impl RouteTable2 {
|
|||||||
if net.addr().to_bits() == 0 {
|
if net.addr().to_bits() == 0 {
|
||||||
// default gateway
|
// default gateway
|
||||||
self.default_gw.store(Arc::new(Some(gw.clone())));
|
self.default_gw.store(Arc::new(Some(gw.clone())));
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
if route.value().load(Ordering::Relaxed) {
|
if route.value().load(Ordering::Relaxed) {
|
||||||
if let Err(e) = del_route(net, gw) {
|
if let Err(e) = del_route(net, gw) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user