SusiDNS: Fix display of default subscription when no subscriptions.txt file present

This commit is contained in:
zzz
2017-05-10 13:49:34 +00:00
parent 45f3695f9d
commit d139892ae0
2 changed files with 5 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ public class SubscriptionsBean extends BaseBean
{
private String fileName, content;
private static final String SUBS_FILE = "subscriptions.txt";
// If you change this, change in Addressbook Daemon also
private static final String DEFAULT_SUB = "http://i2p-projekt.i2p/hosts.txt";
public String getFileName()
{
@@ -87,6 +89,8 @@ public class SubscriptionsBean extends BaseBean
if (br != null)
try { br.close(); } catch (IOException ioe) {}
}
} else {
content = DEFAULT_SUB;
}
}