some correction

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

No files matched your search

+3
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")