auth info: Simplify
This commit is contained in:
parent
c0bda40378
commit
b10c432641
|
@ -83,11 +83,8 @@ namespace SparkleLib {
|
|||
string key_file_name = DateTime.Now.ToString ("yyyy-MM-dd_HH\\hmm") + ".key";
|
||||
string computer_name = Dns.GetHostName ();
|
||||
|
||||
if (computer_name.EndsWith (".local"))
|
||||
computer_name = computer_name.Substring (0, computer_name.Length - ".local".Length);
|
||||
|
||||
if (computer_name.EndsWith (".config"))
|
||||
computer_name = computer_name.Substring (0, computer_name.Length - ".config".Length);
|
||||
if (computer_name.EndsWith (".local") || computer_name.EndsWith (".config"))
|
||||
computer_name = computer_name.Substring (0, computer_name.LastIndexOf ("."));
|
||||
|
||||
string arguments =
|
||||
"-t rsa " + // Crypto type
|
||||
|
|
Loading…
Reference in a new issue