Commit dc88677a authored by Robert David Graham's avatar Robert David Graham Committed by GitHub
Browse files

Merge pull request #247 from agreene5/bugfix.conf.show.all.20160731

[PATCH] BUGFIX to make show = all in config files work correctly
parents f04707a8 6757254e
Loading
Loading
Loading
Loading
+5
Changes for src/main-conf.c: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1374,6 +1374,11 @@ masscan_set_parameter(struct Masscan *masscan,
                masscan->output.is_show_closed = 1;
            else if (EQUALSx("open", val2, val2_len))
                masscan->output.is_show_host = 1;
            else if (EQUALSx("all",val2,val2_len)) {
                masscan->output.is_show_open = 1;
                masscan->output.is_show_host = 1;
                masscan->output.is_show_closed = 1;
            }
            else {
                LOG(0, "FAIL: unknown 'show' spec: %.*s\n", val2_len, val2);
                exit(1);