This commit is contained in:
parent
75f02802ad
commit
7534a3c0bf
@ -162,7 +162,7 @@ func buildUdp(
|
||||
return nil
|
||||
}
|
||||
|
||||
func initiateVerifiers(vs []func()proxy.MacVerifier) (out []proxy.MacVerifier) {
|
||||
func initiateVerifiers(vs []func() proxy.MacVerifier) (out []proxy.MacVerifier) {
|
||||
out = make([]proxy.MacVerifier, len(vs))
|
||||
for i, v := range vs {
|
||||
out[i] = v()
|
||||
@ -170,7 +170,7 @@ func initiateVerifiers(vs []func()proxy.MacVerifier) (out []proxy.MacVerifier) {
|
||||
return
|
||||
}
|
||||
|
||||
func initiateGenerators(gs []func()proxy.MacGenerator) (out []proxy.MacGenerator) {
|
||||
func initiateGenerators(gs []func() proxy.MacGenerator) (out []proxy.MacGenerator) {
|
||||
out = make([]proxy.MacGenerator, len(gs))
|
||||
for i, g := range gs {
|
||||
out[i] = g()
|
||||
|
@ -49,7 +49,7 @@ type Flow struct {
|
||||
|
||||
func NewFlow(vs []proxy.MacVerifier, gs []proxy.MacGenerator) Flow {
|
||||
return Flow{
|
||||
verifiers: vs,
|
||||
verifiers: vs,
|
||||
generators: gs,
|
||||
|
||||
toConsume: make(chan []byte),
|
||||
|
Loading…
Reference in New Issue
Block a user