Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Fix protocol version detection for GangliaReporterFactoryBean
Browse files Browse the repository at this point in the history
'v' in protocol string is optional: "^v?3\\.[01]$"
  • Loading branch information
ryantenney committed Aug 14, 2013
1 parent 2104768 commit c8a53f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ else if (hasProperty(FILTER_REF)) {
getProperty(PORT, Integer.TYPE),
getProperty(UDP_MODE, UDPAddressingMode.class),
getProperty(TTL, Integer.TYPE),
!hasProperty(PROTOCOL) || getProperty(PROTOCOL).equals("v3.1"),
!hasProperty(PROTOCOL) || getProperty(PROTOCOL).contains("3.1"),
hasProperty(UUID) ? java.util.UUID.fromString(getProperty(UUID)) : null,
getProperty(SPOOF)
);
Expand Down

0 comments on commit c8a53f3

Please sign in to comment.