-
Notifications
You must be signed in to change notification settings - Fork 666
leetcode-cn无法登陆 #700
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
Comments
node:v12.13.0 没有设置Proxy [ERROR] Error: tunneling socket could not be established, cause=connect EHOSTUNREACH 0.0.31.65:80 - Local (192.168.255.10:53083) |
解决方案: |
这样写死其实不好,如果 cookie 过期了,还要重新改代码,很麻烦。估计以前中国区的 cookie 格式有些特殊,所以做了特殊处理。现在我看两个区的 cookie 格式是一样的,所以不需要对国内区做特殊处理了,因此,解决这个问题的方法是把下面这行代码: const isCN = config.app === 'leetcode.cn'; 改为: const isCN = false; |
是的,这块是我写的,leetcode-cn 目前格式一致了。 pr 已经在上游项目 merge 了,但目前还没发布,可以手动改 leetcode-cli 的版本,然后执行。 |
可以看最新的 commit 和 pr |
原来是这样,辛苦大佬 @yihong0618 |
@yihong0618 是说leetcode-cli吗?pr有链接吗? |
不是啊,是你那个上游项目,之前 merge 那个 |
ok 了解。那现在应该已经发布了 Thanks! |
Closing since it should have been fixed. Thanks for @yihong0618's help. Feel free to leave comment when you have more questions. |
🐛 Bug Report
无法登录
To Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: