提交 f3034d3c 编写于 作者: B balopat

parsing ip r output

上级 2b0651b5
......@@ -76,7 +76,7 @@ func (router *osRouter) parseTable(table []byte) routingTable {
//don't care about the routes that 0.0.0.0
if len(fields) == 0 ||
len(fields) > 0 && (fields[0] == "default" || fields[0] == "0.0.0.0") {
len(fields) > 0 && (fields[0] == "default" || fields[0] == "0.0.0.0") {
continue
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册