mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-12-22 12:18:47 +00:00
bail out when no proxy was configured
This commit is contained in:
parent
82d0b13b8f
commit
5168bc4eed
@ -291,6 +291,10 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
if(!count) {
|
||||||
|
fprintf(stderr, "error: no valid proxy found in config\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
*proxy_count = count;
|
*proxy_count = count;
|
||||||
proxychains_got_chain_data = 1;
|
proxychains_got_chain_data = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user