3 Commits
Author SHA1 Message Date
luyoyu 952a31f63b update readme 2023-09-13 23:05:43 +08:00
luyoyu 89069492c7 update msg 2023-09-13 23:02:47 +08:00
luyoyu d9fef498b9 update readme 2023-09-13 23:02:26 +08:00
2 changed files with 12 additions and 3 deletions
+8 -3
View File
@@ -16,7 +16,8 @@
- 优化请求逻辑,降低suspended概率(别万人骑基本不会) - 优化请求逻辑,降低suspended概率(别万人骑基本不会)
```sh ```sh
简单说一下本地插件原本的请求逻辑: 简单说一下
本地插件的请求逻辑:
1.本地插件携ghu_token请求github的API 1.本地插件携ghu_token请求github的API
@@ -25,7 +26,9 @@
3.co_token到期->ghu_token重新请求->获得新的co_token 3.co_token到期->ghu_token重新请求->获得新的co_token
------------------------------------------------------------- -------------------------------------------------------------
代理服务器代理的是 ghu_token请求 这一环节: 代理服务器的逻辑:
代理的是"ghu_token请求"这一环节
1.携ghu_token请求github的API,暂存co_token 1.携ghu_token请求github的API,暂存co_token
@@ -33,7 +36,9 @@
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build) 至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
猜测风控目前也是停留在请求ghu_token这一层 猜测风控目前也只是停留在请求ghu_token这一层
"cocopilot也是代理了ghu_token请求,并没有破解插件"
``` ```
+4
View File
@@ -9,6 +9,10 @@ import (
// 控制台显示信息 // 控制台显示信息
func showMsg() { func showMsg() {
fmt.Println(color.WhiteString("-----------------------------------------------------------------------"))
fmt.Println(color.HiBlueString(" _ _ _ _ \n ___| |__ __ _ _ __ ___ ___ ___ _ __ (_) | ___ | |_ \n/ __| '_ \\ / _` | '__/ _ \\_____ / __/ _ \\| '_ \\| | |/ _ \\| __|\n\\__ \\ | | | (_| | | | __/_____| (_| (_) | |_) | | | (_) | |_ \n|___/_| |_|\\__,_|_| \\___| \\___\\___/| .__/|_|_|\\___/ \\__|\n |_| \n"))
fmt.Println(color.WhiteString("[Source Code]") + "https://gitee.com/chuangxxt/share-copilot")
fmt.Println(color.WhiteString("-----------------------------------------------------------------------"))
var url = "" var url = ""
if configFile.Server.Port == 80 { if configFile.Server.Port == 80 {
url = "http://" + configFile.Server.Domain url = "http://" + configFile.Server.Domain