diff --git a/ipkg/CONTROL/control b/ipkg/CONTROL/control index 59d1738..3388104 100644 --- a/ipkg/CONTROL/control +++ b/ipkg/CONTROL/control @@ -7,5 +7,5 @@ License: GPL-3.0-only Section: net SourceDateEpoch: 1711267200 Architecture: all -Installed-Size: 4505600 +Installed-Size: 6307840 Description: Advanced HTTP User-Agent Rewriting Tool. diff --git a/ipkg/CONTROL/control-e b/ipkg/CONTROL/control-e index 59d1738..3388104 100644 --- a/ipkg/CONTROL/control-e +++ b/ipkg/CONTROL/control-e @@ -7,5 +7,5 @@ License: GPL-3.0-only Section: net SourceDateEpoch: 1711267200 Architecture: all -Installed-Size: 4505600 +Installed-Size: 6307840 Description: Advanced HTTP User-Agent Rewriting Tool. diff --git a/src/internal/rewrite/rewriter.go b/src/internal/rewrite/rewriter.go index e365061..edbf283 100644 --- a/src/internal/rewrite/rewriter.go +++ b/src/internal/rewrite/rewriter.go @@ -167,7 +167,7 @@ func (r *Rewriter) ProxyHTTPOrRaw(dst net.Conn, src net.Conn, destAddr string, s if strings.HasSuffix(destAddr, "443") && isTLSClientHello(reader) { r.Cache.Add(destAddr, destAddr) - log.LogDebugWithAddr(srcAddr, destAddr, "TLS ClientHello detected") + log.LogInfoWithAddr(srcAddr, destAddr, "tls client hello detected, pass forward") return } isHTTP, err := r.isHTTP(reader) @@ -177,7 +177,7 @@ func (r *Rewriter) ProxyHTTPOrRaw(dst net.Conn, src net.Conn, destAddr string, s } if !isHTTP { r.Cache.Add(destAddr, destAddr) - log.LogDebugWithAddr(srcAddr, destAddr, "Not HTTP, added to LRU Relay Cache") + log.LogInfoWithAddr(srcAddr, destAddr, "Not HTTP, added to LRU Relay Cache") return } @@ -194,10 +194,10 @@ func (r *Rewriter) ProxyHTTPOrRaw(dst net.Conn, src net.Conn, destAddr string, s if !isHTTP { h2, _ := reader.Peek(2) // ensure we have at least 2 bytes if isWebSocket(h2) { - log.LogDebugWithAddr(srcAddr, destAddr, "WebSocket detected, pass-through") + log.LogInfoWithAddr(srcAddr, destAddr, "WebSocket detected, pass-through") } else { r.Cache.Add(destAddr, destAddr) - log.LogDebugWithAddr(srcAddr, destAddr, "Not HTTP, added to LRU Relay Cache") + log.LogInfoWithAddr(srcAddr, destAddr, "Not HTTP, added to LRU Relay Cache") } return }