From 2f98938c3921ca73fe1f31dd5ae946a848225485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1nos=20Veres?= Date: Mon, 15 Oct 2018 10:17:50 +0200 Subject: [PATCH] Custom consul http port fail due to range ushort is too small for custom http ports. --- Consul/Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Consul/Client.cs b/Consul/Client.cs index 539ad84..2ed4fcb 100644 --- a/Consul/Client.cs +++ b/Consul/Client.cs @@ -206,7 +206,7 @@ private void ConfigureFromEnvironment(UriBuilder consulAddress) { try { - consulAddress.Port = ushort.Parse(addrParts[1]); + consulAddress.Port = Int32.Parse(addrParts[1]); } catch (Exception ex) {