Skip to content

Commit

Permalink
Bug 1528: Display tunnel host name on Authentication dialog
Browse files Browse the repository at this point in the history
https://winscp.net/tracker/1528

Source commit: 9823fc87d0d308e4e08b538acbaac80dc61b973a
  • Loading branch information
martinprikryl committed Jan 28, 2018
1 parent 37ee3ab commit a9ba786
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion source/core/Terminal.cpp
Expand Up @@ -393,7 +393,8 @@ bool __fastcall TTunnelUI::PromptUser(TSessionData * Data, TPromptKind Kind,
{
if (IsAuthenticationPrompt(Kind))
{
Instructions = LoadStr(TUNNEL_INSTRUCTION) +
Instructions =
FMTLOAD(TUNNEL_INSTRUCTION2, (Data->HostName)) +
(Instructions.IsEmpty() ? L"" : L"\n") +
Instructions;
}
Expand Down
2 changes: 1 addition & 1 deletion source/resource/TextsCore.h
Expand Up @@ -299,7 +299,7 @@
#define NEW_PASSWORD_CURRENT_PROMPT 340
#define NEW_PASSWORD_NEW_PROMPT 341
#define NEW_PASSWORD_CONFIRM_PROMPT 342
#define TUNNEL_INSTRUCTION 343
#define TUNNEL_INSTRUCTION2 343
#define RENAME_TITLE 344
#define RENAME_PROMPT2 345
#define VERIFY_CERT_PROMPT3 346
Expand Down
2 changes: 1 addition & 1 deletion source/resource/TextsCore1.rc
Expand Up @@ -269,7 +269,7 @@ BEGIN
NEW_PASSWORD_CURRENT_PROMPT, "&Current password:"
NEW_PASSWORD_NEW_PROMPT, "&New password:"
NEW_PASSWORD_CONFIRM_PROMPT, "Confirm new &password:"
TUNNEL_INSTRUCTION, "Tunnel session authentication"
TUNNEL_INSTRUCTION2, "Authenticating tunnel through %s"
RENAME_TITLE, "Transfer under different name"
RENAME_PROMPT2, "&New name:"
VERIFY_CERT_PROMPT3, "**The server's certificate is not known. You have no guarantee that the server is the computer you think it is.**\n\nServer's certificate details follow:\n\n%s\n\nIf you trust this certificate, press Yes. To connect without storing certificate, press No. To abandon the connection press Cancel.\n\nContinue connecting and store the certificate?"
Expand Down

0 comments on commit a9ba786

Please sign in to comment.