Exemple #1
0
        public Main(IContext context, string channelName, int redirectionPort)
        {
            _interface       = IpcConnectClient <HookInterface>(channelName);
            _redirectionPort = (ushort)redirectionPort;

            //_interface.Ping();
        }
Exemple #2
0
        public Main(IContext context, string channelName, List <string> ipsWhitelist, int redirectionPort)
        {
            _interface       = IpcConnectClient <HookInterface>(channelName);
            _whitelist       = ipsWhitelist.Select(ip => IPAddress.Parse(ip));
            _redirectionPort = (ushort)redirectionPort;

            _interface.Ping();
        }
Exemple #3
0
 public Main(IContext context, string channelName, IEnumerable <string> ipsWhitelist, int redirectionPort)
 {
     _logger = IpcConnectClient <HookInterface>(channelName);
 }