Fix optional listen address

This commit is contained in:
世界
2023-03-19 20:46:22 +08:00
parent 3122cd087e
commit 5e94eca7d1
29 changed files with 110 additions and 101 deletions

View File

@@ -26,7 +26,7 @@ func TestWireGuard(t *testing.T) {
Type: C.TypeMixed,
MixedOptions: option.HTTPMixedInboundOptions{
ListenOptions: option.ListenOptions{
Listen: option.ListenAddress(netip.IPv4Unspecified()),
Listen: option.NewListenAddress(netip.IPv4Unspecified()),
ListenPort: clientPort,
},
},