Updated main.c

master
Aadhavan Srinivasan 2 years ago
parent 54374082f4
commit a1d17770ba

@ -8,4 +8,6 @@
3. Add support for configuration files, which can be specified via a command-line arg
4. Fix Makefile - Doesn't recompile if source files have changed, only if .o files have.
---SHOULD BE DONE---- 4. Fix Makefile - Doesn't recompile if source files have changed, only if .o files have.
5. Check IPv6 support for remote socket

@ -40,7 +40,7 @@ int main(int argc,char* argv[]) {
int preferred_remote_network = check_ip_ver(remote_addr);
printf("Using %d for local\nUsing %d for remote\n",preferred_local_network,preferred_remote_network);
if ((preferred_local_network == -1) && (preferred_remote_network == -1)) {
if ((preferred_local_network == -1) || (preferred_remote_network == -1)) {
exit(-7);
}

Loading…
Cancel
Save