Merge pull request #33

f0c8b87 require e-mail address if dns is enabled (Pavel Vasin)
This commit is contained in:
Pieter Wuille 2015-08-04 18:56:58 +02:00
commit 1a33b78801
No known key found for this signature in database
GPG key ID: 57896D2FF8F0B657

View file

@ -421,6 +421,10 @@ int main(int argc, char **argv) {
fprintf(stderr, "No hostname set. Please use -h.\n"); fprintf(stderr, "No hostname set. Please use -h.\n");
exit(1); exit(1);
} }
if (fDNS && !opts.mbox) {
fprintf(stderr, "No e-mail address set. Please use -m.\n");
exit(1);
}
FILE *f = fopen("dnsseed.dat","r"); FILE *f = fopen("dnsseed.dat","r");
if (f) { if (f) {
printf("Loading dnsseed.dat..."); printf("Loading dnsseed.dat...");