Beispiel #1
0
 public void SetConfig(PacketChangerConfig config)
 {
     this._fileTransferPort = config.FileTransferPort;
     foreach (var item in config.AuthReplacement)
     {
         _loginComand.Add(item.LoginReplace, item);
     }
 }
Beispiel #2
0
        public Proxy(
            int listenPort,
            string listenIp,
            int remotePort,
            string remoteIp,
            PacketChangerConfig packetChangerConfigConfig,
            IEnumerable <object> whiteListConfig)
        {
            this._packetChanger    = new PacketChanger(packetChangerConfigConfig);
            this._whiteListControl = new WhiteListControl(whiteListConfig);
            this._log = new Loger(_listenIp);

            this._listenPort = listenPort;
            this._listenIp   = listenIp;
            this._remotePort = remotePort;
            this._remoteIp   = remoteIp;

            this._thread = new Thread(this.Run);

            this._thread.Start();
        }
Beispiel #3
0
 public PacketChanger(PacketChangerConfig config)
 {
     this.SetConfig(config);
 }