Skip to content

Commit

Permalink
proxy: conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Jan 10, 2024
1 parent 7d82000 commit 9205a0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proxy/server_https_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ func TestProxy_trustedProxies(t *testing.T) {

msg := createTestMessage()

dnsProxy.TrustedProxies = []netip.Prefix{netip.MustParsePrefix(addr)}
trustedAddr := netip.MustParseAddr(addr)
dnsProxy.TrustedProxies = []netip.Prefix{
netip.PrefixFrom(trustedAddr, trustedAddr.BitLen()),
}

// Start listening.
serr := dnsProxy.Start()
Expand Down

0 comments on commit 9205a0c

Please # to comment.