提供多款 Shadowrocket 规则,带广告过滤功能。用于 iOS 未越狱设备选择性地自动翻墙。
-
Updated
May 27, 2020 - Python
run on Mac
Traceback (most recent call last):
File "shadowsocksr/shadowsocks/local.py", line 81, in <module>
main()
File "shadowsocksr/shadowsocks/local.py", line 43, in main
config = shell.get_config(True)
File "****/shadowsocksr-speed/shadowsocksr/shadowsocks/../shadowsocks/shell.py", line 221, in get_config
config['verbose'] = v_count
TypeError: list indices must
Add a description, image, and links to the shadowsocksr topic page so that developers can more easily learn about it.
To associate your repository with the shadowsocksr topic, visit your repo's landing page and select "manage topics."
也算一个总结, 提醒后来人少走弯路.
写入 socket 时的内存管理
uv_write 函数写网口时, 写入数据的内存必须由你管理, 在 回调函数 uv_write_cb 内部释放. 如果你不信邪, 在
uv_write执行完以后马上释放, 恭喜你掉坑里了. 我就在这坑里呆了一星期. 因为这么干的结果是, 在Windows下一切正常, 在Linux下会随机写失败. 估计Windows对这块写内存复制了一份以增加安全性, 类unix平台就不管你死活了. 这点差异性就足以逼你发疯痛不欲生了.接收数