fetcher: make Snet repos use client side crypto by default
This commit is contained in:
parent
c87cfc79ab
commit
e404d4cf88
|
@ -162,7 +162,9 @@ namespace SparkleLib {
|
||||||
|
|
||||||
IsActive = false;
|
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);
|
Finished (repo_is_encrypted, IsFetchedRepoEmpty, Warnings);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -220,7 +222,7 @@ namespace SparkleLib {
|
||||||
n +
|
n +
|
||||||
"Have fun! :)" + 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");
|
text = text.Replace ("a SparkleShare repository", "an encrypted SparkleShare repository");
|
||||||
|
|
||||||
File.WriteAllText (file_path, text);
|
File.WriteAllText (file_path, text);
|
||||||
|
|
Loading…
Reference in a new issue