1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

Correct format

This commit is contained in:
Frank Denis 2018-01-14 00:17:46 +01:00
parent 01d424a942
commit 5a65a3a084

View File

@ -32,7 +32,7 @@ type RegisteredServer struct {
func NewServerStampFromLegacy(serverAddrStr string, serverPkStr string, providerName string) (ServerStamp, error) {
if net.ParseIP(serverAddrStr) != nil {
serverAddrStr = fmt.Sprintf("%s:d", serverAddrStr, DefaultPort)
serverAddrStr = fmt.Sprintf("%s:%d", serverAddrStr, DefaultPort)
}
return ServerStamp{
serverAddrStr: serverAddrStr,