зеркало из https://github.com/github/putty.git
Uppity: print a startup message.
When I start Uppity in listening mode, it's useful to have it acknowledge that it _has_ started up in that mode, and isn't (for example) stuck somewhere in my local wrapper script.
This commit is contained in:
Родитель
1d733808c3
Коммит
57c45c620f
|
@ -821,9 +821,16 @@ int main(int argc, char **argv)
|
|||
scfg.listening_plug.vt = &server_plugvt;
|
||||
scfg.listening_socket = sk_newlistener(
|
||||
NULL, listen_port, &scfg.listening_plug, true, ADDRTYPE_UNSPEC);
|
||||
|
||||
char *msg = dupprintf("%s: listening on port %d",
|
||||
appname, listen_port);
|
||||
log_to_stderr(-1, msg);
|
||||
sfree(msg);
|
||||
} else {
|
||||
Plug *plug = server_conn_plug(&scfg, NULL);
|
||||
struct server_instance *inst;
|
||||
Plug *plug = server_conn_plug(&scfg, &inst);
|
||||
ssh_server_start(plug, make_fd_socket(0, 1, -1, plug));
|
||||
log_to_stderr(inst->id, "speaking SSH on stdio");
|
||||
}
|
||||
|
||||
now = GETTICKCOUNT();
|
||||
|
|
Загрузка…
Ссылка в новой задаче