(velocity) show protocol version number instead of Unknown if no name
This commit is contained in:
+5
-1
@@ -151,6 +151,10 @@ public class VelocityMethods implements PlatformMethods {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getProtocolName(int protocol) {
|
public String getProtocolName(int protocol) {
|
||||||
return ProtocolVersion.getProtocolVersion(protocol).getMostRecentSupportedVersion();
|
String version = ProtocolVersion.getProtocolVersion(protocol).getMostRecentSupportedVersion();
|
||||||
|
if(version.equalsIgnoreCase("Unknown")) {
|
||||||
|
return protocol+"";
|
||||||
|
}
|
||||||
|
return version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user