XX-net / XX-Net

A proxy tool to bypass GFW.
33.05k stars 7.69k forks source link

请问怎么调整XX—net中goagent的设置? #599

Open shenhix opened 9 years ago

shenhix commented 9 years ago

以前使用GoAgent的时候可以调整配置文件 proxy.ini ,我需要更改这几个 [profile] accounts.google.com = google_hk,forcehttps,nofakehttps clients3.google.com = google_hk,forcehttps,nofakehttps drive.google.com = google_hk,forcehttps,nofakehttps upload.drive.google.com = google_hk,forcehttps,nofakehttps 但是XX-net中的配置文件不能修改,请问有什么方法能解决吗?

xxnet commented 9 years ago

现在的ip策略,不是根据dns来的,不能指定香港线路了。

你需要什么效果?

direct是自建ssl链接到google ip,然后重建http请求,是目前最稳定的方式 fwd是只给定ip,让浏览器和google ip自己握手,证书不会替换。 但是因为https的域名会在握手前明文显示,因此被封锁的概率较高。 gae是经过google app engine 中转,限制较大,除了个别地址,一般不推荐。

在 2015年7月10日 上午10:12,shenhix notifications@github.com写道:

以前使用GoAgent的时候可以调整配置文件 proxy.ini ,我需要更改这几个 [profile] accounts.google.com = google_hk,forcehttps,nofakehttps clients3.google.com = google_hk,forcehttps,nofakehttps drive.google.com = google_hk,forcehttps,nofakehttps upload.drive.google.com = google_hk,forcehttps,nofakehttps 但是XX-net中的配置文件不能修改,请问有什么方法能解决吗?

— Reply to this email directly or view it on GitHub https://github.com/XX-net/XX-Net/issues/599.

shenhix commented 9 years ago

accounts.google.com = google_hk,forcehttps,nofakehttps clients3.google.com = google_hk,forcehttps,nofakehttps drive.google.com = google_hk,forcehttps,nofakehttps upload.drive.google.com = google_hk,forcehttps,nofakehttps

这几个配置主要是针对chrome启动时检查IP地址来加载默认主页的! 不然chrome一打开就跳到 Google.com.hk去了 本身并不影响使用,只是想用的更舒服一点!

ghost commented 9 years ago

打开主页,把www.google.com后边的都去掉,然后加上/ncr,即www.google.com/ncr,然后回车 然后再点一下主页。就不会跳转了

shenhix commented 9 years ago

哥们,你没用过chrome吗? 我怎么会不知道www.google.com/ncr
chrome在启动的时候会打开一个Google的地址,确定是中国的ip后他的默认搜索会是google.com.hk (就是直接用地址栏搜索) 而如果你开启Vpn,chrome在启动时会判定你为VPN所在地的ip(比如美国vpn),这样你用地址栏搜索就直接会用google.com来搜索! 我之前添加的这几个内容,就是防止chrome跳转到.HK的!

ghost commented 9 years ago

你是说搜索引擎啊 设置-管理搜索引擎-添加一条搜索引擎 新的搜索引擎填写google(小写) 关键词填写 google.com/ncr 网址填写 https://www.google.com/?gws_rd=ssl#newwindow=1&q=%s

已测试

ghost commented 9 years ago

然后设置这个为默认搜索引擎

yjd commented 9 years ago

搜索引擎用 www.jwss.com就好了。

shenhix commented 9 years ago

如果你是chrome的深度用户你就知道,更改默认搜索串之后,右键使用Google以图搜图就不能用了。。。

simonasd commented 9 years ago

chrome有一些鼠标手势插件,可以拖拽图片实现Google以图搜图。我用Chrome的时候是这么设置的。当时Google还没有默认https,所以一上来就先修改了默认搜索,还真不知道右键有这个自带功能。

ghost commented 9 years ago

.看日志页发现,图片搜索产生的网址长度过大。 Jul 12 10:41:49 - [INFO]LOG_EXCEPT: DIRECT t:263 s:1419 400 www.google.com /searchbyimage?image_url=data%3Aimage/jpeg%3Bbase64%2C/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5OjcBCgoKDQwNGg8PGjclHyU3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3N//AABEIAFoAeAMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAAFBgAEBwMCAf/EADwQAAIBAgQEBAMHAwIGAwAAAAECAwQRAAUSIQYTMUEiUWFxFIGRIzJCobHB0RVS8AeCVGJyk+HxFjND/8QAGgEAAgMBAQAAAAAAAAAAAAAAAgMBBAUABv/EACURAAICAQQCAgMBAQAAAAAAAAECAAMRBB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q3bRF+E20u/e1h+u+JglRALlqFQAdJO3niYgbvqN8ceXM//9k%3D, Except:[Errno 9] Bad file descriptor 搜索一个图片产生这么长的链接而出错了 当我在manual.ini中,吧.google.com = direct 改成.google.com = gae时,图片搜索结果会提示网址过长 如果你单独把图片放在网页上(查看图片),这个时候产生的链接比较短 而且图片搜索也没问题

Jul 12 10:44:12 - [INFO] DIRECT chucked t:1256 s:99463 200 www.google.com /search?tbs=sbi:AMhZZiu0goo9SV8bsrdovJI5WbZF_1Ad3UYIhY1X8N7aF2P_1XYwEGEIZ2-6wcSIcw7npLWx7NBrDRFhHKhyZ26IPBO5nBDTFOQGNPlSTCBlFrGAq5gZ-4Z0AlTdYbuMstWEcWaM9ycd1mYuaw7_1p5v6ENht2gN3qzIj5C4Uop0sIp3fWdLSHhzXFH3QevvM7IfRIP1IVJlXueA2Ywor0Mm90eMgU05JiKoE_1vYuBO_1vcQxtPmxAEa0oPmHV61x7ChP7RG7m_1m5WEZq65katTNOfea3xFHGUUwUIEVq6dMQYk7RAILd-c_1ovVF56acBvNmYXS1ZQMlGqj0I_1pzhAz1J-VQD9QOC6qOdZV6IuI6ufkP5HyAWnMthA1jUko7f4elKJ0R3-nx6VeOc032HxXFDxki4mPYp7AIIxOK2uk2vQdWaBvyrJN_1XcRfPOm_1cO31jJsZ3gCSYh0ETikTApoa82N38hUV7HVh75l4RcqG9-vNzQh1bTxRiMC-TzXkNEtGzutcX5ISCRKjY1ay1QsvkcXUi8lyWzAA-LkDJ620ZuqKNPJuXVMjY-tYU1QAL8kJ68FEJgFccECRK2w0NevLhDnCPYDHwkQL0hGg2uhxvkg3-y0FRwuEFFThApITggN-UQmZK7g8mWXMc_1xH0Xcu9Q72cazr9tuQwzA8Sd8NV8XhnkWAEa9Znk5Hb7sksn9YZvT67mQHWXkeFzD5sTJPc92YHcrcVKMLriPTZ8ol8BS4hULACIjir9iDt619yvK6NZnhDyKUZv84KUCQ_1Qx3O1ItKk1ghwxle3q9BlrtUSAUJWcvzTtZrV4PuH4omu_1nlrZ7a-rOzCoecMC2x7Cdsnr07_18SdxnMAZy5_1fmouyTfZD75w4ofN8bBMinaiR2jGaDPHCw5hpRt2oa-HU-mHdXyAHIt0LZzN_1HZS5_1SLDm8jBGxUX6MyEIlFCub5GDUP4qNM-EkGs8SV_1Kfnozn9Ipkt1GiX6NumhTZpCs_13-RfCi-JalVM_1Jd1MIV9jg8_1hYj-E8Kpi2ROU5usfoKkf9ZarI9tCE4L2DMR6dupGNFRS-eljwqxG0T-taOBK739-FPFgnVZ_1Xm0IU9ihUK0JcMD5xr9IZalunJdqhWQVDghQ7PwJj8Bxv7c3QNx_1zvbq9k-IRQR2cHtWVBuwsKan0aWAd3m6PUKrcXAsk_1YENgdImndoH2wYctIeuLUNg6jR86NAC7yFh4-9EGCyN_1amgK0MdGycysjw7NtXUD2iljvcwqXxUI4bIWEtp4tdAkZG52m6jx538qMTj9jyJ1BZ3N99Y_1hdv_1sRLVaV9yBULe_18SLZUhsOIligsFVarAAUMSA6uYWNLVK0gtr_1DYAu7APSaA0CnkaLo_1mi2kthMb3eLqHaogPcPJLATqfcu4YF2mRiwnr9eBPlsWBRj7PtKjCwSYXSkzAPfqjqJAK6fY2zLXoBNVTI0zJlHweBpzEa_12TzgMoCzqp-VZtwFO0MS1hueDR_13syYjHzwlWxx8_1_1ur2MXaNxVfM9AWpVRt53EC9sWH8WYwD4RPlyW5C2nESfCIIHPUKYtG1fHdrNZhz2VpGQz0KhQ5RQxa5p-hzbmWDG_1RvYs3t0L

ghost commented 9 years ago

所以真正的问题是,google搜索首页把图片加密了,就是为了让人进去浏览。 只要你看到图片后,不是直接在google搜索首页进行右键图片搜索,而是进去下一个页面进行突破搜索,就不会有任何问题。。。

ghost commented 9 years ago

所以真正的问题是,google搜索首页把图片加密了,就是为了让人进去浏览。 只要你看到图片后,不是直接在google搜索首页进行右键图片搜索,而是进去下一个页面进行图片搜索(打错字了),就不会有任何问题。。。

ghost commented 9 years ago

也有可能是xxnet处理不了那么长的网址

simonasd commented 9 years ago

@yuliangyang 第一个url,其中包含了图片的base64,也就是相当于把这张图片进行了编码上传,所以链接就会很长。

ghost commented 9 years ago

对,那是在google搜索首页进行的图片搜索,可能就是google给加密了,进去子页面进行图片搜索就没加密

xxnet commented 9 years ago

Google App Engine 对url fetch 的地址长度,限制了长度,太长就不支持了。

在 2015年7月12日 上午11:03,yuliangyang notifications@github.com写道:

对,那是在google搜索首页进行的图片搜索,可能就是google给加密了,进去子页面进行图片搜索就没加密

— Reply to this email directly or view it on GitHub https://github.com/XX-net/XX-Net/issues/599#issuecomment-120682162.