NetDB: Ensure blind data is rewritten after updating expiration

This commit is contained in:
zzz
2021-02-09 09:24:34 -05:00
parent 92d91dfc3a
commit c8471d5d9b
3 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,16 @@
2021-02-06 zzz
* Proxy: Update default jump servers
* NetDB:
- Ensure RI is published after netdb is initialized
- Only rewrite blind cache at shutdown if changed
* NTCP: Don't publish saved local address when hidden
2021-02-05 zzz
* GeoIP update
2021-02-03 zzz
* Tunnels: Peer selection changes
2021-01-31 zzz
* Router:
- Update list of hidden mode countries

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 16;
public final static long BUILD = 17;
/** for example "-test" */
public final static String EXTRA = "-rc";

View File

@@ -886,6 +886,8 @@ class ClientMessageEventListener implements I2CPMessageReader.I2CPMessageEventLi
long nexp = bd.getExpiration();
if (nexp > oexp) {
obd.setExpiration(nexp);
// to force save at shutdown
_context.netDb().setBlindData(obd);
if (_log.shouldWarn())
_log.warn("Updated expiration: " + obd);
} else {