Skip to content

Commit a4a3f75

Browse files
authored
Fix: PuTTY cli load profile (#2380)
1 parent 98b27c1 commit a4a3f75

File tree

1 file changed

+6
-6
lines changed
  • Source/NETworkManager.Models/PuTTY

1 file changed

+6
-6
lines changed

Source/NETworkManager.Models/PuTTY/PuTTY.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,25 @@ public static string BuildCommandLine(PuTTYSessionInfo sessionInfo)
135135

136136
// PuTTY Profile
137137
if (!string.IsNullOrEmpty(sessionInfo.Profile))
138-
command += $" -load \"{sessionInfo.Profile}\"";
138+
command += $"-load \"{sessionInfo.Profile}\"";
139139

140140
// Protocol
141141
switch (sessionInfo.Mode)
142142
{
143143
case ConnectionMode.SSH:
144-
command += "-ssh";
144+
command += " -ssh";
145145
break;
146146
case ConnectionMode.Telnet:
147-
command += "-telnet";
147+
command += " -telnet";
148148
break;
149149
case ConnectionMode.Serial:
150-
command += "-serial";
150+
command += " -serial";
151151
break;
152152
case ConnectionMode.Rlogin:
153-
command += "-rlogin";
153+
command += " -rlogin";
154154
break;
155155
case ConnectionMode.RAW:
156-
command += "-raw";
156+
command += " -raw";
157157
break;
158158
}
159159

0 commit comments

Comments
 (0)