fix reverse logic in "connect" command that cause port specifications to be ignored.

MFC after:	1 week
This commit is contained in:
Jonathan Chen 2003-03-25 02:33:35 +00:00
parent 07515f29ce
commit 2e34a0f429
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112582

View File

@ -262,9 +262,9 @@ setpeer(argc, argv)
return;
}
if (argc == 3)
setpeer0(argv[1], NULL);
else
setpeer0(argv[1], argv[2]);
else
setpeer0(argv[1], NULL);
}
struct modes {