Update: Js 4 Log.html 95% --next move the loglevel to settingserver
This commit is contained in:
@@ -195,7 +195,10 @@ func (h *ProxyHandler) serveTransparentProxy(c *gin.Context, requestBody []byte,
|
||||
|
||||
finalRecorder, finalProxyErr, isSuccess = recorder, attemptErr, attemptSuccess
|
||||
// ✅ 修正 isSuccess
|
||||
if finalProxyErr != nil || (finalRecorder != nil && finalRecorder.Code >= 400) {
|
||||
if attemptSuccess && (finalRecorder == nil || finalRecorder.Code < 400) {
|
||||
isSuccess = true
|
||||
finalProxyErr = nil // ✅ 清除错误
|
||||
} else {
|
||||
isSuccess = false
|
||||
}
|
||||
lastUsedResources = resources
|
||||
|
||||
Reference in New Issue
Block a user