Util: Add warning about copying router.config to another router

This commit is contained in:
zzz
2023-01-12 06:58:51 -05:00
parent f814b85a86
commit 0bb9984dfa

View File

@@ -528,6 +528,8 @@ public class DataHelper {
try {
fos = new SecureFileOutputStream(tmpFile);
out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos, "UTF-8")));
if (file.getName().equals("router.config"))
out.println("# WARNING: Do NOT copy this file from one router to another, this may cause serious problems.");
out.println("# NOTE: This I2P config file must use UTF-8 encoding");
out.println("# Last saved: " + formatTime(System.currentTimeMillis()));
for (Map.Entry<Object, Object> entry : props.entrySet()) {