diff --git a/TODO.txt b/TODO.txt index 6b9f573..3e77219 100644 --- a/TODO.txt +++ b/TODO.txt @@ -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 diff --git a/main.c b/main.c index b950f07..a799350 100644 --- a/main.c +++ b/main.c @@ -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); }