Darian1996 commented on issue #9320:
URL: https://github.com/apache/dubbo/issues/9320#issuecomment-1015021598
2.7.13 的 dubbo 的 qos
```java
if (extensionLoader.hasExtension(command)) {
if (extensionLoader.hasExtension(command)) {
if (commandEnabled(channel.getUrl(), command)) {
try {
String result =
extensionLoader.getExtension(command).telnet(channel, message);
if (result == null) {
return null;
}
buf.append(result);
} catch (Throwable t) {
buf.append(t.getMessage());
}
} else {
buf.append("Command: ");
buf.append(command);
buf.append(" disabled for security reasons, please
enable support by listing the commands through 'telnet'");
}
} else {
buf.append("Unsupported command: ");
buf.append(command);
}
}
```
```java
private boolean commandEnabled(URL url, String command) {
String supportCommands = url.getParameter(TELNET);
if (StringUtils.isEmpty(supportCommands)) {
return false;
}
String[] commands = COMMA_SPLIT_PATTERN.split(supportCommands);
for (String c : commands) {
if (command.equals(c)) {
return true;
}
}
return false;
}
```

在下边校验的时候出错了。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]