This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 0795923 Regen 0795923 is described below commit 079592364a6fb89806bc24f0e977a3449e6683e6 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Dec 4 08:52:05 2021 +0100 Regen --- .../java/org/apache/camel/component/splunkhec/SplunkHECEndpoint.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECEndpoint.java b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECEndpoint.java index dbc9dfc..79a5074 100644 --- a/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECEndpoint.java +++ b/components/camel-splunk-hec/src/main/java/org/apache/camel/component/splunkhec/SplunkHECEndpoint.java @@ -63,7 +63,8 @@ public class SplunkHECEndpoint extends DefaultEndpoint { String hostname = match.group(1); int port = Integer.parseInt(match.group(2)); - if (!DomainValidator.getInstance(true).isValid(hostname) && !InetAddressValidator.getInstance().isValidInet4Address(hostname)) { + if (!DomainValidator.getInstance(true).isValid(hostname) + && !InetAddressValidator.getInstance().isValidInet4Address(hostname)) { throw new IllegalArgumentException("Invalid hostname: " + hostname); } if (port < 1 || port > 65535) {