update log rotator

This commit is contained in:
2026-03-24 17:06:52 +02:00
parent 6f66d14329
commit 8efe7090be
7 changed files with 63 additions and 39 deletions

View File

@@ -2,8 +2,8 @@ package client
import (
"net/url"
"strconv"
"strings"
"strconv"
)
type Referer struct {
@@ -27,10 +27,10 @@ func NewReferer(hostname string) (*Referer, error) {
urlobj.User = nil
}
ref.urlobj = urlobj
if !strings.Contains(ref.urlobj.Host, ":") {
portstr := strconv.FormatInt(int64(DefaultServicePort), 10)
ref.urlobj.Host = ref.urlobj.Host + ":" + portstr
}
if !strings.Contains(ref.urlobj.Host, ":") {
portstr := strconv.FormatInt(int64(DefaultServicePort), 10)
ref.urlobj.Host = ref.urlobj.Host + ":" + portstr
}
return ref, err
}