This commit is contained in:
BIN
Binary file not shown.
Binary file not shown.
+6
-1
@@ -100,7 +100,7 @@ void show_subnet_aggregation(void) {
|
|||||||
|
|
||||||
FILE *fp = fopen(PERSIST_FILE, "r");
|
FILE *fp = fopen(PERSIST_FILE, "r");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
printf("(无数据)\n\n");
|
printf("(暂无IP信息)\n\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,6 +326,11 @@ void show_subnet_aggregation(void) {
|
|||||||
printf(" - (IPv6 地址) (%d 个)\n", v6_count);
|
printf(" - (IPv6 地址) (%d 个)\n", v6_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 如果没有任何输出(无聚合、无散乱、无v6) */
|
||||||
|
if (!has_output && scattered_count == 0 && v6_count == 0) {
|
||||||
|
printf("(暂无IP信息)\n");
|
||||||
|
}
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user