comparison ServerMonitor/Objects/Server.cs @ 6:c1dffaac66fa

- Don't show multiple password dialogs for the same key if the first one was cancelled. - Add option to trim log files.
author Brad Greco <brad@bgreco.net>
date Fri, 01 Mar 2019 21:38:22 -0500
parents b6fe203af9d5
children 052aa62cb42a
comparison
equal deleted inserted replaced
5:b6fe203af9d5 6:c1dffaac66fa
198 private void InvalidateSshConnection() 198 private void InvalidateSshConnection()
199 { 199 {
200 _sshClient?.Dispose(); 200 _sshClient?.Dispose();
201 _sshClient = null; 201 _sshClient = null;
202 } 202 }
203
204 public override string ToString()
205 {
206 return Name.IsNullOrEmpty() ? Host : Name;
207 }
203 } 208 }
204 209
205 public enum KeyStatus 210 public enum KeyStatus
206 { 211 {
207 Closed, 212 Closed,