Merge argument parsing changes into this copy of telnet.
Submitted by: markm Approved by: bmah
This commit is contained in:
parent
53662117cc
commit
0d16d02150
@ -2284,8 +2284,12 @@ tn(int argc, char *argv[])
|
||||
#endif
|
||||
(hostname = strrchr(hostp, ':')) == NULL)
|
||||
hostname = strrchr(hostp, '@');
|
||||
hostname++;
|
||||
srcroute = 1;
|
||||
if (hostname == NULL) {
|
||||
hostname = hostp;
|
||||
} else {
|
||||
hostname++;
|
||||
srcroute = 1;
|
||||
}
|
||||
} else
|
||||
hostname = hostp;
|
||||
if (!portp) {
|
||||
|
@ -2284,8 +2284,12 @@ tn(int argc, char *argv[])
|
||||
#endif
|
||||
(hostname = strrchr(hostp, ':')) == NULL)
|
||||
hostname = strrchr(hostp, '@');
|
||||
hostname++;
|
||||
srcroute = 1;
|
||||
if (hostname == NULL) {
|
||||
hostname = hostp;
|
||||
} else {
|
||||
hostname++;
|
||||
srcroute = 1;
|
||||
}
|
||||
} else
|
||||
hostname = hostp;
|
||||
if (!portp) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user