fetcher: make Snet repos use client side crypto by default

This commit is contained in:
Hylke Bons 2012-11-04 17:43:29 +00:00
parent c87cfc79ab
commit e404d4cf88

View file

@ -162,7 +162,9 @@ namespace SparkleLib {
IsActive = false;
bool repo_is_encrypted = RemoteUrl.AbsolutePath.Contains ("-crypto");
bool repo_is_encrypted =
(RemoteUrl.AbsolutePath.Contains ("-crypto") || RemoteUrl.Host.Equals ("sparkleshare.net"));
Finished (repo_is_encrypted, IsFetchedRepoEmpty, Warnings);
} else {
@ -220,7 +222,7 @@ namespace SparkleLib {
n +
"Have fun! :)" + n;
if (RemoteUrl.AbsolutePath.Contains ("-crypto"))
if (RemoteUrl.AbsolutePath.Contains ("-crypto") || RemoteUrl.Host.Equals ("sparkleshare.net"))
text = text.Replace ("a SparkleShare repository", "an encrypted SparkleShare repository");
File.WriteAllText (file_path, text);