forked from I2P_Developers/i2p.i2p
SusiDNS: Fix display of default subscription when no subscriptions.txt file present
This commit is contained in:
@@ -52,6 +52,7 @@ class Daemon {
|
|||||||
public static final String VERSION = "2.0.4";
|
public static final String VERSION = "2.0.4";
|
||||||
private volatile boolean _running;
|
private volatile boolean _running;
|
||||||
private static final boolean DEBUG = false;
|
private static final boolean DEBUG = false;
|
||||||
|
// If you change this, change in SusiDNS SubscriptionBean also
|
||||||
private static final String DEFAULT_SUB = "http://i2p-projekt.i2p/hosts.txt";
|
private static final String DEFAULT_SUB = "http://i2p-projekt.i2p/hosts.txt";
|
||||||
/** @since 0.9.12 */
|
/** @since 0.9.12 */
|
||||||
static final String OLD_DEFAULT_SUB = "http://www.i2p2.i2p/hosts.txt";
|
static final String OLD_DEFAULT_SUB = "http://www.i2p2.i2p/hosts.txt";
|
||||||
|
@@ -45,6 +45,8 @@ public class SubscriptionsBean extends BaseBean
|
|||||||
{
|
{
|
||||||
private String fileName, content;
|
private String fileName, content;
|
||||||
private static final String SUBS_FILE = "subscriptions.txt";
|
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()
|
public String getFileName()
|
||||||
{
|
{
|
||||||
@@ -87,6 +89,8 @@ public class SubscriptionsBean extends BaseBean
|
|||||||
if (br != null)
|
if (br != null)
|
||||||
try { br.close(); } catch (IOException ioe) {}
|
try { br.close(); } catch (IOException ioe) {}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
content = DEFAULT_SUB;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user