1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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:
Simon Tatham 2019-05-08 08:26:09 +01:00
parent 1d733808c3
commit 57c45c620f

View File

@ -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();