Skip to content

Commit fa7554d

Browse files
author
Simple-Tracker
committed
Bug fix & Improve
1 parent 61e1705 commit fa7554d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func SetBlockListFromURL() bool {
297297
}
298298

299299
if blockListContent == nil {
300-
blockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
300+
//blockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
301301
Log("SetBlockListFromURL", GetLangText("Error-FetchResponse2"), true)
302302
continue
303303
}
@@ -414,7 +414,7 @@ func SetIPBlockListFromURL() bool {
414414
}
415415

416416
if ipBlockListContent == nil {
417-
ipBlockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
417+
//ipBlockListURLLastFetch -= (int64(config.UpdateInterval) + 900)
418418
Log("SetIPBlockListFromURL", GetLangText("Error-FetchResponse2"), true)
419419
continue
420420
}

request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func Fetch(url string, tryLogin bool, clientReq bool, allowCache bool, withHeade
111111
}
112112

113113
if response.StatusCode == 204 {
114-
Log("Fetch", GetLangText("Debug-Request_NoContent"), false, url)
114+
Log("Debug-Fetch", GetLangText("Debug-Request_NoContent"), false, url)
115115
return 204, response.Header, nil
116116
}
117117

@@ -152,7 +152,7 @@ func Fetch(url string, tryLogin bool, clientReq bool, allowCache bool, withHeade
152152
}
153153

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

0 commit comments

Comments
 (0)