I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit 0bb9984d authored by zzz's avatar zzz
Browse files

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

parent f814b85a
Branches
Tags
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment