Skip to content

Commit

Permalink
Bug fix & Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Tracker committed Jan 12, 2025
1 parent 61e1705 commit fa7554d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func SetBlockListFromURL() bool {
}

if blockListContent == nil {
blockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
//blockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
Log("SetBlockListFromURL", GetLangText("Error-FetchResponse2"), true)
continue
}
Expand Down Expand Up @@ -414,7 +414,7 @@ func SetIPBlockListFromURL() bool {
}

if ipBlockListContent == nil {
ipBlockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
//ipBlockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
Log("SetIPBlockListFromURL", GetLangText("Error-FetchResponse2"), true)
continue
}
Expand Down
4 changes: 2 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func Fetch(url string, tryLogin bool, clientReq bool, allowCache bool, withHeade
}

if response.StatusCode == 204 {
Log("Fetch", GetLangText("Debug-Request_NoContent"), false, url)
Log("Debug-Fetch", GetLangText("Debug-Request_NoContent"), false, url)
return 204, response.Header, nil
}

Expand Down Expand Up @@ -152,7 +152,7 @@ func Fetch(url string, tryLogin bool, clientReq bool, allowCache bool, withHeade
}

if allowCache && response.StatusCode == 304 {
Log("Fetch", GetLangText("Debug-Request_NoChange"), false, url)
Log("Debug-Fetch", GetLangText("Debug-Request_NoChange"), false, url)
return 304, response.Header, nil
}

Expand Down

0 comments on commit fa7554d

Please sign in to comment.