diff options
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/options.c b/src/options.c index 1f10b5c..bc49a44 100644 --- a/src/options.c +++ b/src/options.c @@ -204,7 +204,6 @@ int options_parse(options_t* opt, int argc, char* argv[]) PARSE_RESOLV_TYPE("-R","--remote-resolv", opt->rresolv_type_) PARSE_STRING_PARAM("-o","--remote-port", opt->remote_port_) PARSE_STRING_PARAM("-s","--source-addr", opt->source_addr_) - PARSE_RESOLV_TYPE("-S","--source-resolv", opt->sresolv_type_) PARSE_STRING_PARAM("-c","--config", opt->config_file_) PARSE_INT_PARAM("-b","--buffer-size", opt->buffer_size_) else @@ -252,7 +251,6 @@ void options_default(options_t* opt) opt->rresolv_type_ = ANY; opt->remote_port_ = NULL; opt->source_addr_ = NULL; - opt->sresolv_type_ = ANY; opt->config_file_ = strdup(CONFFILE); string_list_init(&opt->log_targets_); opt->buffer_size_ = 10 * 1024; @@ -306,10 +304,9 @@ void options_print_usage() printf(" [-t|--local-resolv] (ipv4|4|ipv6|6) set IPv4 or IPv6 only resolving for the local address\n"); printf(" [-p|--local-port] <service> local port to listen on\n"); printf(" [-r|--remote-addr] <host> remote address to connect to\n"); - printf(" [-R|--remote-resolv] (ipv4|4|ipv6|6) set IPv4 or IPv6 only resolving for the remote address\n"); + printf(" [-R|--remote-resolv] (ipv4|4|ipv6|6) set IPv4 or IPv6 only resolving for remote and source address\n"); printf(" [-o|--remote-port] <service> remote port to connect to\n"); printf(" [-s|--source-addr] <host> source address to connect from\n"); - printf(" [-S|--source-resolv] (ipv4|4|ipv6|6) set IPv4 or IPv6 only resolving for the source address\n"); printf(" [-b|--buffer-size] <size> size of transmit buffers\n"); printf(" [-c|--config] <file> configuration file\n"); } @@ -344,9 +341,6 @@ void options_print(options_t* opt) else printf("rresolv_type: Both\n"); printf("remote_port: '%s'\n", opt->remote_port_); printf("source_addr: '%s'\n", opt->source_addr_); - if(opt->sresolv_type_ == IPV4_ONLY) printf("sresolv_type: IPv4\n"); - else if(opt->sresolv_type_ == IPV6_ONLY) printf("sresolv_type: IPv6\n"); - else printf("sresolv_type: Both\n"); printf("buffer-size: %d\n", opt->buffer_size_); printf("config_file: '%s'\n", opt->config_file_); printf("debug: %s\n", !opt->debug_ ? "false" : "true"); |