bastion 0.56.0
ci / personal-data (push) Successful in 10s
ci / test (push) Successful in 5m30s
ci / fuzz (push) Successful in 3m16s

This commit is contained in:
Privatae
2026-10-28 02:24:07 +00:00
parent 8822d5df85
commit 4012da0b75
53 changed files with 6430 additions and 270 deletions
+6
View File
@@ -9,6 +9,7 @@ import (
"errors"
"net"
"strings"
"sync"
"testing"
)
@@ -33,8 +34,13 @@ func stubOwnAddrs(t *testing.T, ifaces []string, route func(net.IP) (routeKind,
}
asked := &[]string{}
if route != nil {
// Locked: a lane's workers vet their jobs at once, each on its own
// goroutine (egress_relay_test.go).
var mu sync.Mutex
ownRouteLookup = func(ip net.IP) (routeKind, error) {
mu.Lock()
*asked = append(*asked, ip.String())
mu.Unlock()
return route(ip)
}
} else {