Skip to content

Commit

Permalink
if not 443
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwanz committed Mar 3, 2025
1 parent 7befcf4 commit 7bb82fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -31,7 +31,7 @@ public class ElasticNode
public ElasticNode(string hostAndPort, ElasticSettings.Cluster clusterSettings)
{
ClusterSettings = clusterSettings;
if (Uri.TryCreate(hostAndPort, UriKind.Absolute, out var uri))
if (hostAndPort[^3..] != "443" && Uri.TryCreate(hostAndPort, UriKind.Absolute, out var uri))
{
Url = uri.ToString();
Host = uri.Host;

0 comments on commit 7bb82fe

Please sign in to comment.