Added backward compatibility
This commit is contained in:
parent
b9ff5188f4
commit
e40e93b9bf
@ -28,6 +28,7 @@ public class Configurations {
|
|||||||
private static File file;
|
private static File file;
|
||||||
|
|
||||||
private ArrayList<CustomDNSServer> customDNSServers;
|
private ArrayList<CustomDNSServer> customDNSServers;
|
||||||
|
private ArrayList<CustomDNSServer> customDnsServers;
|
||||||
|
|
||||||
private ArrayList<Rule> hostsRules;
|
private ArrayList<Rule> hostsRules;
|
||||||
private ArrayList<Rule> dnsmasqRules;
|
private ArrayList<Rule> dnsmasqRules;
|
||||||
@ -60,6 +61,11 @@ public class Configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ArrayList<CustomDNSServer> getCustomDNSServers() {
|
public ArrayList<CustomDNSServer> getCustomDNSServers() {
|
||||||
|
//TODO: remove this after 1.10
|
||||||
|
if (customDnsServers != null && customDnsServers.size() > 0) {
|
||||||
|
customDNSServers = customDnsServers;
|
||||||
|
customDnsServers = null;
|
||||||
|
}
|
||||||
if (customDNSServers == null) {
|
if (customDNSServers == null) {
|
||||||
customDNSServers = new ArrayList<>();
|
customDNSServers = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user