Updated main.c
This commit is contained in:
4
TODO.txt
4
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
|
||||
|
2
main.c
2
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user