From 1746a81234e51dea705f5cf9251c8acc3e0ec6a3 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Mon, 15 Apr 2013 18:54:47 +0000 Subject: [PATCH] update servlet base after changing dir --- .../java/src/org/klomp/snark/web/I2PSnarkServlet.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java index 677c69cabf..73d3970791 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java +++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java @@ -800,6 +800,10 @@ public class I2PSnarkServlet extends BasicServlet { _manager.updateConfig(dataDir, filesPublic, autoStart, refreshDel, startupDel, pageSize, seedPct, eepHost, eepPort, i2cpHost, i2cpPort, i2cpOpts, upLimit, upBW, useOpenTrackers, useDHT, theme); + // update servlet + try { + setResourceBase(_manager.getDataDir()); + } catch (ServletException se) {} } else if ("Save2".equals(action)) { String taction = req.getParameter("taction"); if (taction != null) -- GitLab