Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //using ClearCore.Optimize.DNS;
- MCC.LoadPlugin(new DBSDataBaseUpdater());
- //Script Extensions
- public class DBSDataBaseUpdater: Plugin
- {
- public void GetDataBase()
- {
- PluginPostObject(new DNSSettings("1.1.1.1", "CloundFlare"));
- PluginPostObject(new DNSSettings("8.8.8.8", "Google Public DNS"));
- PluginPostObject(new DNSSettings("9.9.9.9", "Quad9 DNS"));
- PluginPostObject(new DNSSettings("8.26.56.26", "Comodo Secure DNS"));
- PluginPostObject(new DNSSettings("77.88.8.8", "Yandex"));
- PluginPostObject(new DNSSettings("208.67.222.222", "OpenDNS"));
- PluginPostObject("LoadDone");
- }
- public override void Initialize()
- {
- GetDataBase();
- }
- public override void ReceivedObject(object s)
- {
- if (s.GetType() == typeof(string))
- {
- string text = (string)s;
- if (text == "GetDataBase")
- {
- GetDataBase();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement