Make it easier to configure multiple listening ports

This commit is contained in:
lucifer9 authored and yuhan6665 committed 2021-11-17 23:13:15 -05:00
1 parent c3298c38a0
commit d6ae4e9ba2
20 files changed
+394 -381

No files matched your search

+4 -2
View File
@@ -49,8 +49,10 @@ func TestXrayClose(t *testing.T) {
Inbound: []*InboundHandlerConfig{
{
ReceiverSettings: serial.ToTypedMessage(&proxyman.ReceiverConfig{
PortRange: net.SinglePortRange(port),
Listen: net.NewIPOrDomain(net.LocalHostIP),
PortList: &net.PortList{
Range: []*net.PortRange{net.SinglePortRange(port)},
},
Listen: net.NewIPOrDomain(net.LocalHostIP),
}),
ProxySettings: serial.ToTypedMessage(&dokodemo.Config{
Address: net.NewIPOrDomain(net.LocalHostIP),