Skip to content

Commit 1a33b78

Browse files
committed
Merge pull request sipa#33
f0c8b87 require e-mail address if dns is enabled (Pavel Vasin)
2 parents a59329d + f0c8b87 commit 1a33b78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,10 @@ int main(int argc, char **argv) {
421421
fprintf(stderr, "No hostname set. Please use -h.\n");
422422
exit(1);
423423
}
424+
if (fDNS && !opts.mbox) {
425+
fprintf(stderr, "No e-mail address set. Please use -m.\n");
426+
exit(1);
427+
}
424428
FILE *f = fopen("dnsseed.dat","r");
425429
if (f) {
426430
printf("Loading dnsseed.dat...");

0 commit comments

Comments
 (0)