Skip to content

Commit

Permalink
Update config.go (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrej-fabry committed Aug 25, 2020
1 parent 1721ca8 commit 8cacbda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc/rest/config.go
Expand Up @@ -15,6 +15,7 @@
package rest

import (
"fmt"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -182,7 +183,7 @@ func (cfg *Config) UseHTTPS() bool {
func DeclareHTTPPortFlag(pluginName infra.PluginName, defaultPortOpts ...uint) {
var defaultPort string
if len(defaultPortOpts) > 0 {
defaultPort = string(defaultPortOpts[0])
defaultPort = fmt.Sprint(defaultPortOpts[0])
} else {
defaultPort = DefaultHTTPPort
}
Expand Down

0 comments on commit 8cacbda

Please sign in to comment.