Skip to content

Commit

Permalink
fix: upgrade Xray api interface to 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
crossfw committed Jan 13, 2022
1 parent 7012f16 commit 3c89156
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/XrayAPI/inbound.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ func addInbound(client command.HandlerServiceClient, node *structures.NodeInfo)
Inbound: &core.InboundHandlerConfig{
Tag: node.Tag,
ReceiverSettings: serial.ToTypedMessage(&proxyman.ReceiverConfig{
PortRange: net.SinglePortRange(net.Port(node.ListenPort)),
Listen: net.NewIPOrDomain(net.AnyIP),
PortList: &net.PortList{
Range: []*net.PortRange{net.SinglePortRange(net.Port(node.ListenPort))},
},
Listen: net.NewIPOrDomain(net.AnyIP),
SniffingSettings: &proxyman.SniffingConfig{
Enabled: true,
DestinationOverride: []string{"http", "tls"},
Expand Down

0 comments on commit 3c89156

Please sign in to comment.