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

求助:android 0.28.0 配置同步失败 #58

Open
wangyi2005 opened this issue Sep 25, 2017 · 15 comments
Open

求助:android 0.28.0 配置同步失败 #58

wangyi2005 opened this issue Sep 25, 2017 · 15 comments

Comments

@wangyi2005
Copy link

提示 no updates from conf server:224.0.0.1:48100

@yinqiwen
Copy link
Owner

如果是目录设置问题, 浏览器先看下 http://127.0.0.1:7788/_conflist 的结果
同步配置在PC的gsnova的client.json的Admin中
需要同步的文件存放方式参考#55

@wangyi2005
Copy link
Author

按照 #55 建立 ./android/openshift 目录,复制client.json,hosts.json
http://127.0.0.1:7788/ 显示 openshift/,打开显示client.json hosts.json
http://127.0.0.1:7788/_conflist 显示 ["openshift"]
pc端应该设置正常,但是手机端同步失败。

@yinqiwen
Copy link
Owner

如果这样的话,应该已经同步过了。openshift应该在android上可以选择了。
no updates from conf server 不是错误,只是需要同步的内容没有更新。

@wangyi2005
Copy link
Author

但是profiles还是显示 default,应该是显示openshift吧

@yinqiwen
Copy link
Owner

点一下Profile,会有弹出框选择

@wangyi2005
Copy link
Author

没有openshift选项

@yinqiwen
Copy link
Owner

目前的同步配置原理:

  1. PC的gsnova 监听http服务在路由器分配的私有IP地址上(7788端口)
  2. PC的gsnova 同时定时(3s)局域网内广播该私有地址(https://github.com/yinqiwen/gsnova/blob/master/local/proxy/admin.go#L88)
  3. Android则以该地址同步配置文件(https://github.com/yinqiwen/gsnova/blob/master/local/proxy/admin.go#L146)

从描述上看可能是网络设置问题

@wangyi2005
Copy link
Author

能否设置为从pc 7788端口直接下载配置

@yinqiwen
Copy link
Owner

记得是可以的,现在无法确认

@wangyi2005
Copy link
Author

谢谢!希望能直接下载配置。

@jzp820927
Copy link

jzp820927 commented Sep 28, 2017

目前是不是只能从同一个局域网内同步配置,不能从广域网同步配置?

@yinqiwen
Copy link
Owner

yinqiwen commented Oct 2, 2017

考虑安全因素,目前只能局域网内

@jzp820927
Copy link

那么 android 端是不是必须要从 局域网同步了配置才能用,能不能手动配置?

@yinqiwen
Copy link
Owner

yinqiwen commented Oct 2, 2017

配置太复杂,没精力做ui,只能同步配置

@jzp820927
Copy link

jzp820927 commented Oct 2, 2017

好吧,感觉为了用移动端,还必须要搭建 PC 端,成本有点高啊。
其实我是希望能够支持远程同步,安全问题可以考虑认证,局域网同步局限性还是有点大的赶脚。

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

3 participants