diff --git a/blockip/bip b/blockip/bip index 96722e1..e18a059 100644 Binary files a/blockip/bip and b/blockip/bip differ diff --git a/blockip/src/stats.c b/blockip/src/stats.c index d7091ab..d2b21e5 100644 --- a/blockip/src/stats.c +++ b/blockip/src/stats.c @@ -24,8 +24,8 @@ void show_active_bans(void) { char line[MAX_LINE_LEN]; int count = 0; - - printf("%s%-20s %-15s%s\n", C_YELLOW, "IP 地址", "剩余时间", C_RESET); + + printf("%s %-20s %-15s%s\n", C_YELLOW, "IP 地址", "剩余时间", C_RESET); printf("-------------------------------------\n"); while (fgets(line, sizeof(line), fp)) { @@ -66,7 +66,7 @@ void show_active_bans(void) { snprintf(time_str, sizeof(time_str), "%llds", s); } - printf("%-20s %s\n", ip, time_str); + printf(" - %-20s %s\n", ip, time_str); count++; } }