Skip to content

Commit 1897c61

Browse files
committed
fix #1811 broke sniffing for regular http_address's
1 parent d3f89ba commit 1897c61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Elasticsearch.Net/Transport/Sniff/SniffResponse.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace Elasticsearch.Net
66
{
77
internal class SniffResponse
88
{
9-
private static Regex AddressRe { get; } = new Regex(@"^(?<fqdn>[^/]+)?/?(?<ip>[^:]+):(?<port>\d+)$");
9+
10+
private static Regex AddressRe { get; } = new Regex(@"^((?<fqdn>[^/]+)/)?(?<ip>[^:]+):(?<port>\d+)$");
1011

1112
public string cluster_name { get; set; }
1213
public Dictionary<string, SniffNode> nodes { get; set; }

0 commit comments

Comments
 (0)