Skip to content

Commit

Permalink
Merge pull request #273 from yutaolian/fix-proxy-not-work
Browse files Browse the repository at this point in the history
bugfix-proxy-not-work
  • Loading branch information
gmcdonald committed Nov 11, 2022
2 parents c293542 + 21c02e7 commit f54d7f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,21 @@ public BapSshHostConfiguration() {
@DataBoundConstructor
public BapSshHostConfiguration(final String name, final String hostname, final String username, final String encryptedPassword,
final String remoteRootDir, final int port, final int timeout, final boolean overrideKey, final String keyPath,
final String key, final boolean disableExec, final boolean avoidSameFileUploads) {
final String key, final boolean disableExec, final boolean avoidSameFileUploads,
final String proxyHost, final int proxyPort, final String proxyUser, final String secretProxyPassword, final String proxyType) {
// CSON: ParameterNumberCheck
super(name, hostname, username, null, remoteRootDir, port);
this.timeout = timeout;
this.overrideKey = overrideKey;
this.keyInfo = new BapSshKeyInfo(encryptedPassword, key, keyPath);
this.disableExec = disableExec;
this.avoidSameFileUploads = avoidSameFileUploads;
this.proxyHost = proxyHost;
this.proxyPort = proxyPort;
this.proxyUser = proxyUser;
this.proxyType = proxyType;
this.secretProxyPassword = Secret.fromString(secretProxyPassword);
this.proxyPassword = secretProxyPassword;
}

@DataBoundSetter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@
</f:advanced>

<f:validateButton title="${m.test_title()}" progress="${m.test_progress()}" method="testConnection"
with="name,hostname,username,encryptedPassword,remoteRootDir,jumpHost,port,timeout,keyPath,key,overrideKey,common.encryptedPassphrase,common.key,common.keyPath,proxyType,proxyHost,proxyPort,proxyUser,proxyPassword"/>
with="name,hostname,username,encryptedPassword,remoteRootDir,jumpHost,port,timeout,keyPath,key,overrideKey,common.encryptedPassphrase,common.key,common.keyPath,proxyType,proxyHost,proxyPort,proxyUser,secretProxyPassword"/>
</j:jelly>

0 comments on commit f54d7f7

Please sign in to comment.