diff --git a/README.md b/README.md index e295adbb..ffade679 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ make local.run 密码:1234567890 ``` -![usage.gif](https://i.imgur.com/zpCoLVM.gif) + ## 三、支持的服务商列表 diff --git a/README_EN.md b/README_EN.md index 181f5190..650fff88 100644 --- a/README_EN.md +++ b/README_EN.md @@ -71,7 +71,7 @@ username:admin@certimate.fun password:1234567890 ``` -![usage.gif](https://i.imgur.com/zpCoLVM.gif) + ## List of Supported Providers @@ -194,3 +194,4 @@ User Responsibility: By using this software, you agree to take full responsibili ## Star History [![Stargazers over time](https://starchart.cc/usual2970/certimate.svg?variant=adaptive)](https://starchart.cc/usual2970/certimate) + diff --git a/internal/deployer/providers.go b/internal/deployer/providers.go index dbb75851..8699f96d 100644 --- a/internal/deployer/providers.go +++ b/internal/deployer/providers.go @@ -2,7 +2,6 @@ package deployer import ( "fmt" - "strconv" "github.com/usual2970/certimate/internal/domain" "github.com/usual2970/certimate/internal/pkg/core/deployer" @@ -249,7 +248,7 @@ func createDeployer(options *deployerOptions) (deployer.Deployer, logger.Logger, return nil, nil, fmt.Errorf("failed to decode provider access config: %w", err) } - sshPort, _ := strconv.ParseInt(access.Port, 10, 32) + sshPort := access.Port deployer, err := providerSSH.NewWithLogger(&providerSSH.SshDeployerConfig{ SshHost: access.Host, SshPort: int32(sshPort), diff --git a/internal/domain/access.go b/internal/domain/access.go index b90405e6..25325379 100644 --- a/internal/domain/access.go +++ b/internal/domain/access.go @@ -96,7 +96,7 @@ type AccessConfigForQiniu struct { type AccessConfigForSSH struct { Host string `json:"host"` - Port string `json:"port"` + Port int `json:"port"` Username string `json:"username"` Password string `json:"password"` Key string `json:"key"`