stellar2012wxg / wallproxy-plus

Automatically exported from code.google.com/p/wallproxy-plus
0 stars 0 forks source link

MAC下运行startup.py报错??? #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
错误提示为:
已上传ID成功,在local目录下执行此命令报错。

201:local auess$ python startup.py
------------------------------------------------------------------------------
Welcome to use wallproxy, Copyright (C) 2009-2012 HustMoon Studio
Version: wallproxy/2.0.0 (python/2.6.1, gevent/none)
Listen : 127.0.0.1:8086
------------------------------------------------------------------------------
Initializing fake CA for https2http:
Traceback (most recent call last):
  File "startup.py", line 7, in <module>
    main()
  File "<string>", line 1449, in __
  File "<string>", line 1427, in _61
  File "<string>", line 566, in _18
  File "<string>", line 581, in _7
  File "<string>", line 512, in ____
  File "<string>", line 467, in _64
  File "<string>", line 455, in _33
TypeError: X509Extension() takes no keyword arguments

Original issue reported on code.google.com by songyiqu...@gmail.com on 11 Sep 2012 at 3:12

GoogleCodeExporter commented 9 years ago
你的pyOpenSSL版本太旧,除了更新pyOpenSSL外,你可以尝试以下��
�种选择:
1. 
复制missing文件夹下的CA.crt和CA.key到cert目录,此时使用预置的
CA,有一点安全隐患;
2. 在其他系统例如Windows上生成CA.crt和CA.key后复制到cert目录。

Original comment by www.eh...@gmail.com on 11 Sep 2012 at 4:01

GoogleCodeExporter commented 9 years ago
谢谢回复,有几个问题:
1、pyopenssl如何更新?在终端里输入指令更新还是直接升级pyth
on 2.7或更高版本?
2、是将missing文件夹下的CA.crt和CA.key移动到父目录cert下吗?��
�为运行后产生了一个新文件夹在cert目录下,叫certs,是个空�
��件夹,移动到cert还是certs下呢?
3、首页上说的智能代理和强制代理两种模式下,是否同样需�
��设置浏览器或系统全局PAC代理地址为: 
http://127.0.0.1:8086/proxy.pac 还是 http://127.0.0.1:8087/proxy.pac?

Original comment by songyiqu...@gmail.com on 11 Sep 2012 at 4:27

GoogleCodeExporter commented 9 years ago
1. 
pyopenssl非python自带,无法通过升级python更新,需要另外安装��
�方法与系统/包管理软件相关;
2. 是的,复制到cert而非certs;
3. 
目前智能代理功能默认关闭,这两种方法是差不多的,建议��
�能够使用PAC的场合尽量使用PAC,这样效率会好些。填哪个都�
��区别,凡是wallproxy监听的端口,直接访问时都是一样的结果
。

Original comment by www.eh...@gmail.com on 11 Sep 2012 at 4:38

GoogleCodeExporter commented 9 years ago
谢谢这么快的回复。
问题是我用safari里没有自定义PAC的选项,所以必须设置系统��
�局PAC地址,我想只用默认PAC模式时设置http://127.0.0.1:8086/proxy.
pac为全局地址,而使用另外两个模式下则关闭系统全局PAC代��
�功能并清空地址,这样能否可行?

Original comment by songyiqu...@gmail.com on 11 Sep 2012 at 4:48

GoogleCodeExporter commented 9 years ago
你想在修改proxy.ini中file参数后系统代理的PAC也自动修改?wall
proxy不会自动去改MAC的系统代理(Win下的GUI倒是提供这个一键
切换功能),你可以去找找提供此类功能的其他软件。
如果你说的是你自己手工去改,很好,这样是正确的设置方��
�。

Original comment by www.eh...@gmail.com on 11 Sep 2012 at 5:00

GoogleCodeExporter commented 9 years ago
谢谢啊,这么晚还耐心的回答我的疑问。:)
目前是我写了一个脚本可以做到PAC代理切换,因为safari没有��
�switchproxy或autoproxy那样的插件,所以我自己做了一个。
恩,我再去试试,有问题再联系。BTW,新版看UT直播太给力了
!:D
保重身体,早点休息,晚安。

Original comment by songyiqu...@gmail.com on 11 Sep 2012 at 5:08

GoogleCodeExporter commented 9 years ago

Original comment by www.eh...@gmail.com on 14 Sep 2012 at 12:10

GoogleCodeExporter commented 9 years ago
Moved to: Issue wallproxy:119

Original comment by wwqgtxx on 2 Dec 2012 at 2:17