PlayFab / consuldotnet

.NET API for Consul (http://www.consul.io/)
Apache License 2.0
692 stars 193 forks source link

Consul port configuration #106

Closed Condor2708 closed 6 years ago

Condor2708 commented 6 years ago

Is there anyway to change the default consul 8500 port?

Regards

highlyunavailable commented 6 years ago

Create your ConsulClient object and pass in a delegate to set the Address property of the configuration to a valid URI during construction:

var client = new ConsulClient((c) => { c.Address = new Uri("http://127.0.0.1:1337"); });