This is an automated email from the ASF dual-hosted git repository.
hefengen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new d5acd11f01 [fix] fix http check (#5989)
d5acd11f01 is described below
commit d5acd11f0194a59f0aed8992c4166ddc325853d7
Author: aias00 <[email protected]>
AuthorDate: Wed Apr 23 09:46:54 2025 +0800
[fix] fix http check (#5989)
* [fix] fix http check
* [fix] fix http check
---------
Co-authored-by: moremind <[email protected]>
---
.../org/apache/shenyu/admin/service/impl/UpstreamCheckService.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
index 522df43c06..100738c9a0 100644
---
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
+++
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
@@ -248,6 +248,9 @@ public class UpstreamCheckService {
* @return whether this module handles
*/
public boolean checkAndSubmit(final String selectorId, final
CommonUpstream commonUpstream) {
+ if (!REGISTER_TYPE_HTTP.equalsIgnoreCase(registerType) || !checked) {
+ return false;
+ }
final boolean pass =
UpstreamCheckUtils.checkUrl(commonUpstream.getUpstreamUrl());
if (pass) {
this.submit(selectorId, commonUpstream);