Commit bccfea83 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

fix string conversion for port

parent 14f793f3
...@@ -38,7 +38,7 @@ func NewDatastore(addr Address, index string) (*Datastore, error) { ...@@ -38,7 +38,7 @@ func NewDatastore(addr Address, index string) (*Datastore, error) {
api.Domain = addr.Host api.Domain = addr.Host
if addr.Port > 0 { if addr.Port > 0 {
api.Port = string(addr.Port) api.Port = fmt.Sprintf("%d", addr.Port)
} }
GlobalInstance = addr GlobalInstance = addr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment