X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=config.c;h=8d492df1636f7a0ad792f5a6443abb4810a672b4;hb=01a7673ae9b20274184c3a7dac690055ba2cd24c;hp=09c77d57083c7ccdaec996cd14e1e8f6ecf5afc5;hpb=caf4100ff3ce7a18e6149f1a205f1531255b2f7e;p=PuTTY.git diff --git a/config.c b/config.c index 09c77d57..8d492df1 100644 --- a/config.c +++ b/config.c @@ -1729,13 +1729,17 @@ void setup_config_box(struct controlbox *b, int midsession, NULL); #endif - s = ctrl_getset(b, "Connection", "identity", - "Logical name of remote host"); - ctrl_editbox(s, "Logical name of remote host (e.g. for SSH key lookup):", - 'm', 100, - HELPCTX(connection_loghost), - dlg_stdeditbox_handler, I(offsetof(Config,loghost)), - I(sizeof(((Config *)0)->loghost))); + { + char *label = backend_from_proto(PROT_SSH) ? + "Logical name of remote host (e.g. for SSH key lookup):" : + "Logical name of remote host:"; + s = ctrl_getset(b, "Connection", "identity", + "Logical name of remote host"); + ctrl_editbox(s, label, 'm', 100, + HELPCTX(connection_loghost), + dlg_stdeditbox_handler, I(offsetof(Config,loghost)), + I(sizeof(((Config *)0)->loghost))); + } } /*