mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-14 05:12:37 +08:00
feat: refactor protocol configuration handling in main and plugin
- Add protocol configuration to the `run` function in `main.go` - Remove redundant protocol configuration from the `run` function in `main.go` - Add proxy protocol configuration to the `run` function in `main.go` - Add protocol configuration to the `removeAllDestFile` function in `plugin.go` - Add proxy protocol configuration to the `removeAllDestFile` function in `plugin.go` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -123,6 +123,7 @@ func (p *Plugin) removeAllDestFile() error {
|
||||
User: p.Config.Username,
|
||||
Password: p.Config.Password,
|
||||
Port: port,
|
||||
Protocol: p.Config.Protocol,
|
||||
Key: p.Config.Key,
|
||||
KeyPath: p.Config.KeyPath,
|
||||
Passphrase: p.Config.Passphrase,
|
||||
@@ -135,6 +136,7 @@ func (p *Plugin) removeAllDestFile() error {
|
||||
User: p.Config.Proxy.User,
|
||||
Password: p.Config.Proxy.Password,
|
||||
Port: p.Config.Proxy.Port,
|
||||
Protocol: p.Config.Proxy.Protocol,
|
||||
Key: p.Config.Proxy.Key,
|
||||
KeyPath: p.Config.Proxy.KeyPath,
|
||||
Passphrase: p.Config.Proxy.Passphrase,
|
||||
|
||||
Reference in New Issue
Block a user