mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-20 08:16:55 -05:00
gofmt -s
This commit is contained in:
parent
d0de8060b6
commit
2d551c97df
@ -14,7 +14,7 @@ func TestSimpleRouter(t *testing.T) {
|
|||||||
|
|
||||||
config := &RouterRuleConfig{
|
config := &RouterRuleConfig{
|
||||||
Rules: []*Rule{
|
Rules: []*Rule{
|
||||||
&Rule{
|
{
|
||||||
Tag: "test",
|
Tag: "test",
|
||||||
Condition: NewNetworkMatcher(v2net.Network("tcp").AsList()),
|
Condition: NewNetworkMatcher(v2net.Network("tcp").AsList()),
|
||||||
},
|
},
|
||||||
|
@ -25,7 +25,7 @@ func NewUser(id *ID, level UserLevel, alterIdCount uint16) *User {
|
|||||||
if alterIdCount > 0 {
|
if alterIdCount > 0 {
|
||||||
u.AlterIDs = make([]*ID, alterIdCount)
|
u.AlterIDs = make([]*ID, alterIdCount)
|
||||||
prevId := id.UUID()
|
prevId := id.UUID()
|
||||||
for idx, _ := range u.AlterIDs {
|
for idx := range u.AlterIDs {
|
||||||
newid := prevId.Next()
|
newid := prevId.Next()
|
||||||
// TODO: check duplicate
|
// TODO: check duplicate
|
||||||
u.AlterIDs[idx] = NewID(newid)
|
u.AlterIDs[idx] = NewID(newid)
|
||||||
|
@ -31,7 +31,7 @@ func NewInboundDetourHandlerDynamic(space app.Space, config *InboundDetourConfig
|
|||||||
}
|
}
|
||||||
ichCount := config.Allocation.Concurrency
|
ichCount := config.Allocation.Concurrency
|
||||||
ichArray := make([]proxy.InboundHandler, ichCount*2)
|
ichArray := make([]proxy.InboundHandler, ichCount*2)
|
||||||
for idx, _ := range ichArray {
|
for idx := range ichArray {
|
||||||
ich, err := proxyrepo.CreateInboundHandler(config.Protocol, space, config.Settings)
|
ich, err := proxyrepo.CreateInboundHandler(config.Protocol, space, config.Settings)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Point: Failed to create inbound connection handler: ", err)
|
log.Error("Point: Failed to create inbound connection handler: ", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user