Correct format
This commit is contained in:
parent
01d424a942
commit
5a65a3a084
|
@ -32,7 +32,7 @@ type RegisteredServer struct {
|
||||||
|
|
||||||
func NewServerStampFromLegacy(serverAddrStr string, serverPkStr string, providerName string) (ServerStamp, error) {
|
func NewServerStampFromLegacy(serverAddrStr string, serverPkStr string, providerName string) (ServerStamp, error) {
|
||||||
if net.ParseIP(serverAddrStr) != nil {
|
if net.ParseIP(serverAddrStr) != nil {
|
||||||
serverAddrStr = fmt.Sprintf("%s:d", serverAddrStr, DefaultPort)
|
serverAddrStr = fmt.Sprintf("%s:%d", serverAddrStr, DefaultPort)
|
||||||
}
|
}
|
||||||
return ServerStamp{
|
return ServerStamp{
|
||||||
serverAddrStr: serverAddrStr,
|
serverAddrStr: serverAddrStr,
|
||||||
|
|
Loading…
Reference in New Issue