some correction

This commit is contained in:
n3t1zen
2026-03-05 11:19:11 +08:00
parent dfc5653d2f
commit 2f63914882
4 changed files with 114 additions and 28 deletions

View File

@@ -56,6 +56,9 @@ func readConfigAt(path string) (*OptionsEntry, error) {
configContent, err = io.ReadAll(os.Stdin)
} else if path == "env" && subscriptionLink != "" {
configContentResponse, err := http.Get(subscriptionLink)
if err != nil {
log.Warn("Cannot fetch subscription: ", err)
}
if err != nil || configContentResponse.StatusCode != 200 {
if subscriptionCache != "" {
log.Info("using previous subscription cache")