mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-12 11:29:36 +03:00
Make it easier to configure multiple listening ports
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user