proxy: add source and destination address to delay and drop callbacks (#4964)

This commit is contained in:
Marten Seemann
2025-02-22 12:21:40 +01:00
committed by GitHub
parent eb2f986a06
commit 6033030017
19 changed files with 65 additions and 53 deletions

View File

@@ -44,7 +44,7 @@ func TestNATRebinding(t *testing.T) {
var mx sync.Mutex
var switchedPath bool
var dataTransferred int
proxy.DelayPacket = func(dir quicproxy.Direction, b []byte) time.Duration {
proxy.DelayPacket = func(dir quicproxy.Direction, _, _ net.Addr, b []byte) time.Duration {
mx.Lock()
defer mx.Unlock()