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) {