Skip to content

Commit d5acd11

Browse files
Aias00moremind
andauthored
[fix] fix http check (#5989)
* [fix] fix http check * [fix] fix http check --------- Co-authored-by: moremind <[email protected]>
1 parent ae1702b commit d5acd11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java

+3
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ private List<CommonUpstream> submitJust(final String selectorId, final CommonUps
248248
* @return whether this module handles
249249
*/
250250
public boolean checkAndSubmit(final String selectorId, final CommonUpstream commonUpstream) {
251+
if (!REGISTER_TYPE_HTTP.equalsIgnoreCase(registerType) || !checked) {
252+
return false;
253+
}
251254
final boolean pass = UpstreamCheckUtils.checkUrl(commonUpstream.getUpstreamUrl());
252255
if (pass) {
253256
this.submit(selectorId, commonUpstream);

0 commit comments

Comments
 (0)