~vcs-imports/putty/master

Viewing all changes in revision 5811.

  • Committer: Simon Tatham
  • Date: 2020-04-19 13:40:30 UTC
  • Revision ID: git-v1:b951d05819a73131353a88a7014e5ceb2b196d67
PSCP: change handling of default protocol/port.

A user points out that in the current state of PSCP, if you have some
protocol other than SSH configured in Default Settings, then
specifying a non-saved-session hostname on the PSCP command line will
cause it to try to connect with protocol SSH but the port number from
Default Settings.

A better approach is the one used in PSFTP: we use the port number
from the saved session _if_ the protocol is also one that's known to
PSCP (i.e. SSH or bare ssh-connection), and otherwise, we reset both
to sensible values.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: