fix spaces on iptables-save
This commit is contained in:
parent
15e5008b45
commit
c58f565275
@ -85,11 +85,11 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar
|
||||
const struct xt_ts3init_set_cookie_tginfo *info = (const void *)target->data;
|
||||
if (info->specific_options & TARGET_SET_COOKIE_ZERO_RANDOM_SEQUENCE)
|
||||
{
|
||||
printf("--zero-random-sequence ");
|
||||
printf(" --zero-random-sequence ");
|
||||
}
|
||||
if (info->specific_options & TARGET_SET_COOKIE_RANDOM_SEED_FROM_ARGUMENT)
|
||||
{
|
||||
printf("--random-seed ");
|
||||
printf(" --random-seed ");
|
||||
for (i = 0; i < RANDOM_SEED_LEN; i++)
|
||||
{
|
||||
printf("%02X", info->random_seed[i]);
|
||||
|
@ -83,15 +83,15 @@ static void ts3init_save(const void *ip, const struct xt_entry_match *match)
|
||||
const struct xt_ts3init_mtinfo *info = (const void *)match->data;
|
||||
if (info->specific_options & CHK_TS3INIT_CLIENT)
|
||||
{
|
||||
printf("--client ");
|
||||
printf(" --client ");
|
||||
}
|
||||
if (info->specific_options & CHK_TS3INIT_SERVER)
|
||||
{
|
||||
printf("--server ");
|
||||
printf(" --server ");
|
||||
}
|
||||
if (info->specific_options & CHK_TS3INIT_COMMAND)
|
||||
{
|
||||
printf("--command %i ", (int)info->command);
|
||||
printf(" --command %i ", (int)info->command);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -79,11 +79,11 @@ static void ts3init_get_cookie_save(const void *ip, const struct xt_entry_match
|
||||
const struct xt_ts3init_get_cookie_mtinfo *info = (const void *)match->data;
|
||||
if (info->common_options & CHK_COMMON_CLIENT_VERSION)
|
||||
{
|
||||
printf("--min-client %u ", info->min_client_version + CLIENT_VERSION_OFFSET);
|
||||
printf(" --min-client %u ", info->min_client_version + CLIENT_VERSION_OFFSET);
|
||||
}
|
||||
if (info->specific_options & CHK_GET_COOKIE_CHECK_TIMESTAMP)
|
||||
{
|
||||
printf("--check-time %u ", info->max_utc_offset);
|
||||
printf(" --check-time %u ", info->max_utc_offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,15 +103,15 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
|
||||
const struct xt_ts3init_get_puzzle_mtinfo *info = (const void *)match->data;
|
||||
if (info->common_options & CHK_COMMON_CLIENT_VERSION)
|
||||
{
|
||||
printf("--min-client %u ", info->min_client_version + CLIENT_VERSION_OFFSET);
|
||||
printf(" --min-client %u ", info->min_client_version + CLIENT_VERSION_OFFSET);
|
||||
}
|
||||
if (info->specific_options & CHK_GET_PUZZLE_CHECK_COOKIE)
|
||||
{
|
||||
printf("--check-cookie ");
|
||||
printf(" --check-cookie ");
|
||||
}
|
||||
if (info->specific_options & CHK_GET_PUZZLE_RANDOM_SEED_FROM_ARGUMENT)
|
||||
{
|
||||
printf("--random-seed ");
|
||||
printf(" --random-seed ");
|
||||
for (i = 0; i < RANDOM_SEED_LEN; i++)
|
||||
{
|
||||
printf("%02X", info->random_seed[i]);
|
||||
@ -120,7 +120,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
|
||||
}
|
||||
if (info->specific_options & CHK_GET_PUZZLE_RANDOM_SEED_FROM_FILE)
|
||||
{
|
||||
printf("--random-seed-file \"%s\" ", info->random_seed_path);
|
||||
printf(" --random-seed-file \"%s\" ", info->random_seed_path);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user