コード例 #1
0
 public void OnUpdateIps()
 {
     if (m_current != null)
     {
         try
         {
             m_current.OnUpdateIps();
             Recovery.Save();
         }
         catch (Exception e)
         {
             Engine.Instance.Log(e);
         }
     }
 }
コード例 #2
0
 public virtual void OnVpnDisconnected()
 {
     if (m_current != null)
     {
         try
         {
             m_current.OnVpnDisconnected();
             Recovery.Save();
         }
         catch (Exception e)
         {
             Engine.Instance.Log(e);
         }
     }
 }
コード例 #3
0
        public virtual bool OnRouteDefaultRemoveDo()
        {
            List <RouteEntry> routeEntries = RouteList();

            foreach (RouteEntry routeEntry in routeEntries)
            {
                if (routeEntry.Mask.ToString() == "0.0.0.0")
                {
                    m_routeDefaultRemove = routeEntry;

                    routeEntry.Remove();

                    Recovery.Save();
                }
            }

            return(true);
        }