Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

连接几次后,打开网络或者请求VPN就会断开,请问什么原因 #293

Open
yuzhijiang opened this issue Apr 4, 2020 · 7 comments

Comments

@yuzhijiang
Copy link

nw_socket_handle_socket_event [C3.1:2] Socket SO_ERROR [61: Connection refused]
Connection 3: received failure notification
Connection 3: failed to connect 1:61, reason -1
Connection 3: encountered error(1:61)
Task <6C7C1EAA-643B-4B2A-8430-436E4B2B7485>.<1> HTTP load failed, 0/0 bytes (error code: -1004 [1:61])

@yuzhijiang
Copy link
Author

发现一个问题,请求的网址是在Rule.conf里面的代理域名,那么VPN能正常使用,也不会断开,但是如果不在rule.conf里面配置,请求其他域名,创建连接会出现访问失败,网络断开情况,iPhone11 上出现

@qinci
Copy link

qinci commented Apr 9, 2020

那是因为你没有配置geoIp数据库,去注册个账号,下载数据库配置进去。

@2856571872
Copy link

发现一个问题,请求的网址是在Rule.conf里面的代理域名,那么VPN能正常使用,也不会断开,但是如果不在rule.conf里面配置,请求其他域名,创建连接会出现访问失败,网络断开情况,iPhone11 上出现

请问你是进行什么方式的链接,SS吗

@itsjohnye
Copy link

  1. GeoIP will crash during development if one forgets to initialize it.
    To use geo ip database, first init it - Download the binary database https://dev.maxmind.com/geoip/geoip2/geolite2/

then set:
GeoIP.database = MMDB("PATH_TO_THE_DATABASE")!

  1. To debug:

Attached到extension的进程上调试

@2856571872
Copy link

  1. GeoIP will crash during development if one forgets to initialize it.
    To use geo ip database, first init it - Download the binary database https://dev.maxmind.com/geoip/geoip2/geolite2/

then set:
GeoIP.database = MMDB("PATH_TO_THE_DATABASE")!

  1. To debug:

Attached到extension的进程上调试

GeoIP.database = MMDB("PATH_TO_THE_DATABASE")!加上并没啥用,没加还能连上过会或者访问其他东西就断了,加上之后连都连不上了。。。

@itsjohnye
Copy link

@2856571872 "PATH_TO_THE_DATABASE"是你的mmdb的相对路径,不是让你复制粘贴。上调试图呀?

@2856571872
Copy link

@2856571872 "PATH_TO_THE_DATABASE"是你的mmdb的相对路径,不是让你复制粘贴。上调试图呀?

多谢🙏,我弄个MMDB然后拖进项目配置下路径就好了0.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants