Fix IPv6 remote address formatting

This commit is contained in:
dajiaohuang authored and Bernhard Fröhlich committed 2026-10-16 14:37:15 +02:00
1 parent 37279f241c
commit 7881935f54
3 files changed
+110 -1

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@ package main
import (
"fmt"
"net"
"net/smtp"
"net/url"
)
@@ -55,7 +56,7 @@ func ParseRemote(remoteURL string) (*Remote, error) {
Scheme: u.Scheme,
Hostname: hostname,
Port: port,
Addr: fmt.Sprintf("%s:%s", hostname, port),
Addr: net.JoinHostPort(hostname, port),
}
if u.User != nil {