public void SetConfig(PacketChangerConfig config) { this._fileTransferPort = config.FileTransferPort; foreach (var item in config.AuthReplacement) { _loginComand.Add(item.LoginReplace, item); } }
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(); }
public PacketChanger(PacketChangerConfig config) { this.SetConfig(config); }