Skip to content

Commit cfd4dcf

Browse files
fix: Allow not to specify -h when -b is set
1 parent d992ce6 commit cfd4dcf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mainfun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ int main(int argc, char *argv[])
285285
return EXIT_FAILURE;
286286
}
287287

288-
if (!g_ctx.hostname) {
288+
if (!g_ctx.payloadpath && !g_ctx.hostname) {
289289
fprintf(stderr, "%s: option -h is required.\n", argv[0]);
290290
print_usage(argv[0]);
291291
return EXIT_FAILURE;

0 commit comments

Comments
 (0)