mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 08:31:28 +00:00
Run "go fmt ./..."
This commit is contained in:
parent
667279af57
commit
ee21763928
|
@ -308,7 +308,7 @@ func TestRoutingRule(t *testing.T) {
|
||||||
{
|
{
|
||||||
rule: &RoutingRule{
|
rule: &RoutingRule{
|
||||||
Protocol: []string{"http"},
|
Protocol: []string{"http"},
|
||||||
Attributes: map[string]string {
|
Attributes: map[string]string{
|
||||||
":path": "/test",
|
":path": "/test",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -36,7 +36,7 @@ func NewDNS(ctx context.Context, config interface{}) (interface{}, error) {
|
||||||
|
|
||||||
buf := make([]byte, 0x100)
|
buf := make([]byte, 0x100)
|
||||||
|
|
||||||
off1, err := packDomainName(config.(*Config).Domain + ".", buf)
|
off1, err := packDomainName(config.(*Config).Domain+".", buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -143,7 +143,7 @@ func (s *clientConnections) openConnection(ctx context.Context, destAddr net.Add
|
||||||
HandshakeIdleTimeout: time.Second * 8,
|
HandshakeIdleTimeout: time.Second * 8,
|
||||||
MaxIdleTimeout: time.Second * 300,
|
MaxIdleTimeout: time.Second * 300,
|
||||||
Tracer: func(ctx context.Context, p logging.Perspective, ci quic.ConnectionID) logging.ConnectionTracer {
|
Tracer: func(ctx context.Context, p logging.Perspective, ci quic.ConnectionID) logging.ConnectionTracer {
|
||||||
return qlog.NewConnectionTracer( &QlogWriter{connID: ci}, p, ci);
|
return qlog.NewConnectionTracer(&QlogWriter{connID: ci}, p, ci)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
udpConn, _ := rawConn.(*net.UDPConn)
|
udpConn, _ := rawConn.(*net.UDPConn)
|
||||||
|
|
|
@ -109,7 +109,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
||||||
MaxIncomingStreams: 32,
|
MaxIncomingStreams: 32,
|
||||||
MaxIncomingUniStreams: -1,
|
MaxIncomingUniStreams: -1,
|
||||||
Tracer: func(ctx context.Context, p logging.Perspective, ci quic.ConnectionID) logging.ConnectionTracer {
|
Tracer: func(ctx context.Context, p logging.Perspective, ci quic.ConnectionID) logging.ConnectionTracer {
|
||||||
return qlog.NewConnectionTracer( &QlogWriter{connID: ci}, p, ci);
|
return qlog.NewConnectionTracer(&QlogWriter{connID: ci}, p, ci)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue