public void SetHost(ServerInfo serverInfo) { Server = serverInfo; }
public virtual void SetServerInfo(ServerInfo serverInfo) { Server = serverInfo; }
public override void SetServerInfo(ServerInfo serverInfo) { if (subObfs == null && serverInfo.param != null && serverInfo.param.Length > 0) { try { string[] paramsList = serverInfo.param.Split(",".ToCharArray(), 2); string subParam = ""; if (paramsList.Length > 1) { subObfs = ObfsFactory.GetObfs(paramsList[0]); subParam = paramsList[1]; } else { subObfs = ObfsFactory.GetObfs(serverInfo.param); } if (((SubEncodeObfs)serverInfo.data).subObfs == null) ((SubEncodeObfs)serverInfo.data).subObfs = subObfs.InitData(); subObfs.SetServerInfo(new ServerInfo(serverInfo.host, serverInfo.port, serverInfo.tcp_mss, subParam, ((SubEncodeObfs)serverInfo.data).subObfs)); } catch (Exception) { // do nothing } serverInfo.param = null; } base.SetServerInfo(serverInfo); }
public override void SetServerInfo(ServerInfo serverInfo) { base.SetServerInfo(serverInfo); }
public override void SetServerInfo(ServerInfo serverInfo) { Server = serverInfo; InitDataSizeList(); }