diff --git a/config/builder.go b/config/builder.go index 994385f..76bcb0a 100644 --- a/config/builder.go +++ b/config/builder.go @@ -82,7 +82,7 @@ func buildTcp( } if peer.RemoteHost != "" { - f, err := tcp.InitiateFlow(laddr, fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort), initiateVerifiers(vs), initiateGenerators(gs)) + f, err := tcp.InitiateFlow(laddr, fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort), initialiseVerifiers(vs), initialiseGenerators(gs)) if err != nil { return err @@ -134,8 +134,8 @@ func buildUdp( f, err := udp.InitiateFlow( laddr, fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort), - initiateVerifiers(vs), - initiateGenerators(gs), + initialiseVerifiers(vs), + initialiseGenerators(gs), c(), time.Duration(peer.KeepAlive)*time.Second, ) @@ -162,7 +162,7 @@ func buildUdp( return nil } -func initiateVerifiers(vs []func() proxy.MacVerifier) (out []proxy.MacVerifier) { +func initialiseVerifiers(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 initialiseGenerators(gs []func() proxy.MacGenerator) (out []proxy.MacGenerator) { out = make([]proxy.MacGenerator, len(gs)) for i, g := range gs { out[i] = g()