- commit
- 5359de0
- parent
- 011c851
- author
- Antonio Mika
- date
- 2024-10-03 18:37:56 +0000 UTC
Fix port setting
1 files changed,
+4,
-4
+4,
-4
1@@ -117,11 +117,11 @@ type CliHandler struct {
2 }
3
4 func toSshCmd(cfg *shared.ConfigSite) string {
5- port := "22"
6- if cfg.Port != "" {
7- port = fmt.Sprintf("-p %s", cfg.Port)
8+ port := ""
9+ if cfg.PortOverride != "22" {
10+ port = fmt.Sprintf("-p %s ", cfg.PortOverride)
11 }
12- return fmt.Sprintf("%s %s", port, cfg.Domain)
13+ return fmt.Sprintf("%s%s", port, cfg.Domain)
14 }
15
16 func WishMiddleware(handler *CliHandler) wish.Middleware {