mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
Make it easier to configure multiple listening ports
This commit is contained in:
parent
c3298c38a0
commit
d6ae4e9ba2
20 changed files with 394 additions and 381 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue