[client] write --server-resolve-ipv4 arg to the rc file when saving

This commit is contained in:
Michael Rash 2018-08-11 09:42:20 -07:00
parent 5339179c8e
commit 799ec87765
2 changed files with 4 additions and 2 deletions

View File

@ -1480,6 +1480,7 @@ add_single_var_to_rc(FILE* fhandle, short var_pos, fko_cli_options_t *options)
var->pos, var->name, val);
fprintf(fhandle, RC_PARAM_TEMPLATE, var->name, val);
return;
}
/**
@ -2319,6 +2320,7 @@ config_init(fko_cli_options_t *options, int argc, char **argv)
break;
case SERVER_RESOLVE_IPV4:
options->spa_server_resolve_ipv4 = 1;
add_var_to_bitmask(FWKNOP_CLI_ARG_SERVER_RESOLVE_IPV4, &var_bitmask);
break;
case 'w':
if(options->wget_bin != NULL)

View File

@ -2066,11 +2066,11 @@
'function' => \&client_rc_file,
'cmdline' => "$lib_view_str $valgrind_str $fwknopCmd -A tcp/22 -a $fake_ip " .
"-D $loopback_ip --rc-file $save_rc_file --save-rc-stanza " .
"--force-stanza --test -n default -R --server-resolve-ipv4",
"--force-stanza --test -n default -R -vvv --server-resolve-ipv4",
'save_rc_stanza' => [{'name' => 'default',
'vars' => {'KEY' => 'testtest', 'HMAC_KEY' => 'hmactest',
'HMAC_DIGEST_TYPE' => 'SHA1',
'SERVER_RESOLVE_IPV4' => 'Y'}}],
'SERVER_RESOLVE_IPV4' => 'N'}}],
},
{
'category' => 'basic operations',