SS

Wesley13
• 阅读 547

修改文件Controller-Service-PACserver.cs

1、

//PacUrl = $"http://127.0.0.1:{config.localPort}/pac?t={GetTimestamp(DateTime.Now)}{PacSecret}";
PacUrl = $"http://127.0.0.1:{config.localPort}/pac";

2、

                foreach (string line in lines)
                {
                    string[] kv = line.Split(new char[] { ':' }, 2);
                    if (kv.Length == 2)
                    {
                        if (kv[0] == "Host")
                        {
                            if (kv[1].Trim() == ((IPEndPoint)socket.LocalEndPoint).ToString())
                            {
                                hostMatch = true;
                            }
                        }
                        //else if (kv[0] == "User-Agent")
                        //{
                        //    // we need to drop connections when changing servers
                        //    if (kv[1].IndexOf("Chrome") >= 0)
                        //    {
                        //        useSocks = true;
                        //    }
                        //}
                    }
                    //匹配验证,直接将pathMatch和secretMatch置为true
                    //else if (kv.Length == 1)
                    //{
                    //    if (line.IndexOf("pac", StringComparison.Ordinal) >= 0)
                    //    {
                    //        pathMatch = true;
                    //    }
                    //    if (!secretMatch)
                    //    {
                    //        if(line.IndexOf(PacSecret, StringComparison.Ordinal) >= 0)
                    //        {
                    //            secretMatch = true;
                    //        }
                            
                    //    }
                    //}
                }
                pathMatch = true;
                secretMatch = true;
点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
陈占占 陈占占
2年前
运行Django找不到Windows“http://127.0.0.1:8000/”的问题
这个好像是系统的问题,不是软件的问题,好像是杀毒软件删了一些文件。Django没有错误,可以在网站直接输入网址。原因:是360删除了一些文件。决方法:恢复,我的大概恢复了浏览器的文件,然后就好了。
Stella981 Stella981
2年前
Nginx与uWSGI交互
1\.更改uwsgi的配置文件uwsgi.iniuwsgi...使用nginx连接时,监控地址socket127.0.0.1:8080直接做web服务器时,所监控地址http127.0.0.1:80802\.在nginx配置文件中的路由模块添加uwsgi支持.
Wesley13 Wesley13
2年前
MySQL在Ubuntu远程配置
MySQL远程连接访问在普通Linux下配置:在这个配置文件/etc/mysql/my.cnf修改:bindaddress         127.0.0.1修改为bindaddress         127.0.0.1或者b
Wesley13 Wesley13
2年前
P2P技术揭秘.P2P网络技术原理与典型系统开发
Modular.Java(2009.06)\.Craig.Walls.文字版.pdf:http://www.t00y.com/file/59501950(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.t00y.com%2Ffile%2F59501950)\More.E
Wesley13 Wesley13
2年前
MySQL查询——WHERE
WHERE简单查询mysqlroot@127.0.0.1:testSELECTname,numberFROMstudentWHEREname'范统'|name|number||
Stella981 Stella981
2年前
CentOS6.5 永久修改主机名
1、编辑/etc/sysconfig/network文件vi/etc/sysconfig/networkNETWORKINGyesHOSTNAMEtest012、修改 /etc/hosts文件root@localhost~vim/etc/hosts127.0.0.1
Stella981 Stella981
2年前
Docker 部署SpringBoot项目不香吗?
  公众号改版后文章乱序推荐,希望你可以点击上方“Java进阶架构师”,点击右上角,将我们设为★“星标”!这样才不会错过每日进阶架构文章呀。  !(http://dingyue.ws.126.net/2020/0920/b00fbfc7j00qgy5xy002kd200qo00hsg00it00cj.jpg)  2
Stella981 Stella981
2年前
Es 全文 PHP 操作
1、删除对应的es节点$head'ContentType:application/json';$json'';$resCurl_es("http://127.0.0.1:9200/my_index_2?pretty",'DELETE',$json,$head);functionCu
Wesley13 Wesley13
2年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_