Set proper options if started without arguments

This commit is contained in:
ValdikSS 2017-12-20 12:36:21 +03:00
parent c9cd3ac8c7
commit a5b185c2a9

View File

@ -287,7 +287,9 @@ int main(int argc, char *argv[]) {
if (argc == 1) { if (argc == 1) {
/* enable mode -1 by default */ /* enable mode -1 by default */
do_passivedpi = do_host = do_host_removespace \ do_passivedpi = do_host = do_host_removespace \
= do_fragment_http = do_fragment_https = 1; = do_fragment_http = do_fragment_https \
= do_fragment_http_persistent \
= do_fragment_http_persistent_nowait = 1;
} }
while ((opt = getopt_long(argc, argv, "1234prsaf:e:mwk:n", long_options, NULL)) != -1) { while ((opt = getopt_long(argc, argv, "1234prsaf:e:mwk:n", long_options, NULL)) != -1) {