Accepts connections via ssh
This commit is contained in:
parent
4d170675b4
commit
ec57012585
@ -18,6 +18,12 @@ v0.81.2 14-Oct-2005.
|
||||
mbtask:
|
||||
Some time_t/int conversions.
|
||||
|
||||
mbsebbs:
|
||||
Accepts connections via ssh.
|
||||
|
||||
mbnewusr:
|
||||
Accepts connections via ssh.
|
||||
|
||||
|
||||
v0.81.1 09-Oct-2005 - 14-Oct-2005
|
||||
|
||||
|
@ -186,7 +186,7 @@ int main(int argc, char **argv)
|
||||
pout(WHITE, BLACK, (char *)COPYRIGHT);
|
||||
Enter(2);
|
||||
|
||||
if ((p = getenv("REMOTEHOST")) != NULL) {
|
||||
if (((p = getenv("REMOTEHOST")) != NULL) || ((p = getenv("SSH_CLIENT")) != NULL)) {
|
||||
/*
|
||||
* Network connection, no tty checking but fill a ttyinfo record.
|
||||
*/
|
||||
@ -197,6 +197,7 @@ int main(int argc, char **argv)
|
||||
snprintf(ttyinfo.flags, 31, "IBN,IFC,XX");
|
||||
ttyinfo.type = NETWORK;
|
||||
ttyinfo.available = TRUE;
|
||||
ttyinfo.honor_zmh = FALSE;
|
||||
snprintf(ttyinfo.name, 36, "Network port #%d", iNode);
|
||||
} else {
|
||||
/*
|
||||
|
@ -213,7 +213,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
if ((p = getenv("REMOTEHOST")) != NULL) {
|
||||
if (((p = getenv("REMOTEHOST")) != NULL) || ((p = getenv("SSH_CLIENT")) != NULL)) {
|
||||
/*
|
||||
* Network connection, no tty checking but fill a ttyinfo record.
|
||||
*/
|
||||
@ -224,6 +224,7 @@ int main(int argc, char **argv)
|
||||
snprintf(ttyinfo.flags, 31, "IBN,IFC,XX");
|
||||
ttyinfo.type = NETWORK;
|
||||
ttyinfo.available = TRUE;
|
||||
ttyinfo.honor_zmh = FALSE;
|
||||
snprintf(ttyinfo.name, 36, "Network port #%d", iNode);
|
||||
} else {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user