Skip to content

Commit

Permalink
nixos/modules/clash: unify clash 204 service URL
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Dec 27, 2023
1 parent 5c8d143 commit b9ca361
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/clash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ in
})
(mkIf cfg.rule.enable (
let
generate_204 = "http://www.gstatic.com/generate_204";
providers = [ "dler" "mielink" "bywave" ];
proxyProviders = lib.genAttrs providers (name: {
type = "http";
Expand All @@ -94,7 +95,7 @@ in
interval = 3600;
health-check = {
enable = true;
url = "http://www.gstatic.com/generate_204";
url = generate_204;
interval = 300;
};
});
Expand All @@ -113,7 +114,7 @@ in
type = "url-test";
use = providers;
proxies = [ "DIRECT" ];
url = "http://cp.cloudflare.com/generate_204";
url = generate_204;
interval = "3600";
}
] ++ builtins.fromJSON (builtins.readFile ./proxy-groups.json);
Expand Down

0 comments on commit b9ca361

Please sign in to comment.