Skip to content

Provider a better way to choose the GitHub proxy #229

Open
@LinuxSuRen

Description

@LinuxSuRen

Sometimes, we might meet the following errors when trying to use gh.api.99988866.xyz

status code: 429

We can record the GitHub proxy server into a config file. And mark the error when it occurs. So, it's possible to choose an available server automatically.

Since v0.0.57, the config file hd.yaml looks like:

fetch: true
goget: false
provider: gitee
proxy-github: gh.api.99988866.xyz
thread: 6

then, we can add the following items:

proxy-github-candidates:
  - server: gh.api.99988866.xyz
     status: ok
     lastUsed: Thu Apr 14 21:32:08 CST 2022
  - server: ghproxy.com
     status: error
     lastUsed: Thu Apr 14 21:32:08 CST 2022

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions