예제 #1
0
        public override void Prepare(Record parameter)
        {
            var record = Utils.DeepClone(parameter);

            Host     = record.Host;
            Settings = record.NaiveProxySettings;
        }
예제 #2
0
        public static string BuildNaiveProxy(NaiveProxySettings settings)
        {
            StringBuilder strBuilder = new StringBuilder();

            strBuilder.Append("naive+https://");
            strBuilder.Append($"{settings.UserName}:{settings.Password}");
            strBuilder.Append($"@{settings.Domain}:{settings.Port}");
            strBuilder.Append("?padding=true#naive_proxy");

            return(strBuilder.ToString());
        }
예제 #3
0
 public override void Prepare(Record parameter)
 {
     _host     = parameter.Host;
     _settings = parameter.NaiveProxySettings;
 }