mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 08:11:11 +08:00
24w09b
This commit is contained in:
parent
815b86c6c6
commit
61e741c9b3
5 changed files with 18 additions and 5 deletions
|
|
@ -12,12 +12,12 @@ type Config struct {
|
|||
|
||||
var (
|
||||
cfg *config.Config
|
||||
configfile = "/data/ghproxy/config/config.yaml"
|
||||
blacklistfile = "/data/ghproxy/config/blacklist.json"
|
||||
blacklist *Config
|
||||
)
|
||||
|
||||
func init() {
|
||||
func LoadBlacklist(cfg *config.Config) {
|
||||
blacklistfile = cfg.Blacklist.BlacklistFile
|
||||
blacklist = &Config{}
|
||||
|
||||
data, err := os.ReadFile(blacklistfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue