merge of 'bd4c9889786a280f8797cbdc6ca9cddb8c7260a2'

and 'fe4b2b6942b6c0dbe1efda4e2fa555289e74cbef'
This commit is contained in:
zzz
2017-03-03 14:00:47 +00:00
11 changed files with 147 additions and 52 deletions

View File

@ -396,6 +396,8 @@ public class HostTxtEntry {
throw new IllegalStateException();
props.setProperty(PROP_NAME, name);
props.setProperty(PROP_DEST, dest);
if (!props.containsKey(PROP_DATE))
props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000));
StringWriter buf = new StringWriter(1024);
try {
writeProps(buf);
@ -418,6 +420,8 @@ public class HostTxtEntry {
throw new IllegalStateException();
if (props.containsKey(sigprop))
throw new IllegalStateException();
if (!props.containsKey(PROP_DATE))
props.setProperty(PROP_DATE, Long.toString(System.currentTimeMillis() / 1000));
StringWriter buf = new StringWriter(1024);
buf.append(name);
buf.append(KV_SEPARATOR);

View File

@ -20,6 +20,9 @@ public abstract class SystemVersion {
* @since 0.9.28
*/
public static final String DAEMON_USER = "i2psvc";
/*
* @since 0.9.29
*/
public static final String GENTOO_USER = "i2p";
private static final boolean _isWin = System.getProperty("os.name").startsWith("Win");