chore:github ipv prefer
This commit is contained in:
parent
ab8f94547c
commit
e6934c3b06
@ -630,7 +630,7 @@ def write_channel_to_file(data, ipv6=False, callback=None):
|
||||
open_empty_category = config.open_empty_category
|
||||
ipv_type_prefer = list(config.ipv_type_prefer)
|
||||
if any(pref in ipv_type_prefer for pref in ["自动", "auto"]) or not ipv_type_prefer:
|
||||
ipv_type_prefer = ["ipv6", "ipv4"] if (ipv6 or os.environ.get("GITHUB_ACTIONS")) else ["ipv4", "ipv6"]
|
||||
ipv_type_prefer = ["ipv6", "ipv4"] if ipv6 else ["ipv4", "ipv6"]
|
||||
origin_type_prefer = config.origin_type_prefer
|
||||
if config.open_update_time:
|
||||
now = datetime.datetime.now()
|
||||
|
Loading…
x
Reference in New Issue
Block a user