forked from quic-go/quic-go
run gofmt -s on main and server config
This commit is contained in:
@@ -71,11 +71,9 @@ func tlsConfigFromCertpath(certpath string) (*tls.Config, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return &tls.Config{
|
return &tls.Config{
|
||||||
Certificates: []tls.Certificate{
|
Certificates: []tls.Certificate{{
|
||||||
tls.Certificate{
|
Certificate: [][]byte{certDer},
|
||||||
Certificate: [][]byte{certDer},
|
PrivateKey: key,
|
||||||
PrivateKey: key,
|
}},
|
||||||
},
|
|
||||||
},
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ func (s *ServerConfig) Get() []byte {
|
|||||||
TagKEXS: []byte("C255"),
|
TagKEXS: []byte("C255"),
|
||||||
TagAEAD: []byte("CC20"),
|
TagAEAD: []byte("CC20"),
|
||||||
TagPUBS: append([]byte{0x20, 0x00, 0x00}, s.kex.PublicKey()...),
|
TagPUBS: append([]byte{0x20, 0x00, 0x00}, s.kex.PublicKey()...),
|
||||||
TagOBIT: []byte{0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7},
|
TagOBIT: {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7},
|
||||||
TagEXPY: []byte{0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
|
TagEXPY: {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff},
|
||||||
TagVER: []byte("Q032"),
|
TagVER: []byte("Q032"),
|
||||||
})
|
})
|
||||||
return serverConfig.Bytes()
|
return serverConfig.Bytes()
|
||||||
|
|||||||
Reference in New Issue
Block a user