Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法监听到 uget 启动的 aria2c #15

Closed
arfaWong opened this issue Sep 5, 2016 · 6 comments
Closed

无法监听到 uget 启动的 aria2c #15

arfaWong opened this issue Sep 5, 2016 · 6 comments

Comments

@arfaWong
Copy link

arfaWong commented Sep 5, 2016

使用 uget 的 aria2 插件,可以在进程及端口中查看到 aria2c 已经启动,但是 AriaNg 显示未连接。
使用下面这个网站,状态监听正常
http://ziahamza.github.io/webui-aria2/

@mayswind
Copy link
Owner

mayswind commented Sep 5, 2016

地址配置正确了么?

@arfaWong
Copy link
Author

arfaWong commented Sep 5, 2016

地址配置是正确的,现在的情况是这样的:

aria2 + conf uget + aria2 plugin
AriaNg ×
webui-aria2

不知道是不是 uget 里面 少了一些参数

@mayswind
Copy link
Owner

mayswind commented Sep 5, 2016

协议啥的都正确不。你可以打开浏览器的 开发者工具 ,然后在网络选项卡看下 aria2 返回的是啥。

@arfaWong
Copy link
Author

arfaWong commented Sep 5, 2016

XMLHttpRequest cannot load http://localhost:6800/jsonrpc. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

报了这个错误

@mayswind
Copy link
Owner

mayswind commented Sep 5, 2016

几个问题:
1、aria2设置 rpc-allow-origin-all 这个参数了么?
2、webui-aria2 能正常连接 aria2 么?
3、AriaNg 直接在浏览器双击打开的本地文件还是部署到 web 服务器中访问的?

@arfaWong
Copy link
Author

arfaWong commented Sep 5, 2016

  1. 没有设置 rpc-allow-origin-all
  2. webui-aria2 可以正常连接
  3. 使用 Demo 中的网站访问的

现在设置 rpc-allow-origin-all = true 之后,使用 Demo 中的网站可以正常连接了。
感谢!

@mayswind mayswind closed this as completed Sep 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants