fixed bad naming
This commit is contained in:
parent
c9ae461e0e
commit
5753687d5b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user