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

"仅 IPv6" 不可用,请检查。 MacOS 10.14.3 #12240

Open
alexbbbb opened this issue Feb 16, 2019 · 2 comments
Open

"仅 IPv6" 不可用,请检查。 MacOS 10.14.3 #12240

alexbbbb opened this issue Feb 16, 2019 · 2 comments

Comments

@alexbbbb
Copy link

@alexbbbb alexbbbb commented Feb 16, 2019

  • 是否试过最新的版本 (https://github.com/XX-net/XX-Net/releases )?

  • 是否查看过 Wiki (https://github.com/XX-net/XX-Net/wiki )?

  • 是否以相关关键词搜索过类似 issues?

  • 描述遇到的问题,贴出所有能帮助分析问题的状态页和日志,如包含大量文本时,请上传为 txt 文件:

  • 如果问题得到解决,请务必回复相关情况,谢谢。

XX-Net Status:

sys-platform: x86_64, Darwin-18.2.0-x86_64-i386-64bit
os-system: Darwin
os-version: Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018; root:xnu-4903.241.1~1/RELEASE_X86_64
os-release: 18.2.0
os-detail: Release:10.14.3; Version:('', '', '') Machine:x86_64
architecture: 64bit,
browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
xxnet-version: 3.13.1
python-version: 2.7.10
openssl-version: 16.0.0 TLSv1 h2:alpn
lan-proxy: Disable
use-ipv6: force_ipv6
gws-ip-num: total:undefined ipv4:0 ipv6:99
ipv4-status: OK
ipv6-status: Fail
connected-link: new:0 used:undefined
worker: h1:0 h2:0
scan-ip-thread-num: 6
ip-quality: 609
is-idle: 1
block-stat: undefined
proxy_state: OK
ca_state: OK
Appid_Working: true
Appids_Out_Of_Quota: false
Appids_Not_Exist: false
Using_Public_Appid: false

@zzzqiuchan
Copy link

@zzzqiuchan zzzqiuchan commented Feb 25, 2019

如果你确定能够正常使用IPv6网络(比如使用的教育网原生IPv6、IPv6的PT能够正常使用、可以访问仅支持IPv6的网站),只是XX-Net无法使用,可以尝试一下我的暴力方法:

  1. 彻底关闭XX-Net、关掉浏览器的代理;
  2. 使用Sublime Text之类的,打开gae_proxy/local文件夹下check_local_network.py文件;
  3. 找到这样一段代码
IPv6.urls = ["http://[2001:41d0:8:e8ad::1]",
             "http://[2001:260:401:372::5f]",
             "http://[2a02:188:3e00::32]",
             "http://[2804:10:4068::202:82]"
             ]
  1. 将代码中的这几个网址,分别粘贴到浏览器中,看看能不能够正常访问;
  2. 如果能够正常访问,那么可以尝试下面的暴力方法;
  3. 找到 def _test_host(self, url):这个函数;
  4. 在这个函数的开头加两行,强制判断IPv6为可用状态,即将
    def _test_host(self, url):
        try:
            header = {

修改为

    def _test_host(self, url):
        if 'IPv6' == self.type:
            return True
        try:
            header = {
  1. 保存文件,打开XX-Net,开启浏览器的代理
@AnyWAT
Copy link

@AnyWAT AnyWAT commented Feb 25, 2019

在32位Win10下试了试。

IPv6.urls = ["http://[2001:41d0:8:e8ad::1]",
"http://[2001:260:401:372::5f]",
"http://[2a02:188:3e00::32]",
"http://[2804:10:4068::202:82]"

(禁用原生 IPv6)使用隧道、XX-Net 正常时上面第3个网址并不能打开,(禁用隧道)使用原生 IPv6、XX-Net 正常时也是,彻底关闭XX-Net、关掉浏览器的代理(直接连接)还是如此。继续

  1. 在这个函数的开头加两行,强制判断IPv6为可用状态,即将
    ......
  2. 保存文件,打开XX-Net,开启浏览器的代理

结果:XX-Net 点开若干秒后自动退出,明显是没自动生成文件 check_local_network.pyc,原因或在看不懂的 launcher.log 文件中。

貌似楼主的问题在没找到合适的隧道服务器,如 #11994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.