Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

hebiyan

Cannot enter more than 50 characters in Proxy hostname on Preferences Update page

Hi,

I would like to report an issue (or request a change) regarding the Proxy hostname length limit in the Preferences dialog.
In contrast, the Login dialog's Host name field allows input longer than 50 characters without any issues.

Environment:

  • WinSCP version: 6.5.6
  • OS: Windows 11 Pro 24H2


Steps to reproduce:
  1. Open the Preferences dialog (Options > Preferences)
  2. Select Updates in the left panel.
  3. Under the Connection section, select the Use proxy server radio button.
  4. Try to enter a hostname with more than 50 characters into the Proxy hostname field.


Observed behavior:
Input is restricted to 50 characters maximum. When attempting to type the 51st character, a system beep sounds and no further characters are accepted.

Source code reference:
In source/forms/Preferences.dfm (around line 2290), the UpdatesProxyHostEdit component has MaxLength set to 50:

object UpdatesProxyHostEdit: TEdit

  ...
  MaxLength = 50
  ...
end


It seems this MaxLength = 50 setting is enforcing the 50-character limit on this field.

Since hostnames (such as FQDNs in cloud environments) can easily exceed 50 characters, could you please consider extending or removing this limit to match the regular session host name field?

Thank you!