added initial typing of forwarders, now only tcp
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
type CreateForwarderParams struct {
|
||||
Hostname string
|
||||
Type string
|
||||
Lport uint32
|
||||
Dport uint32
|
||||
Addresses []string
|
||||
@@ -39,6 +40,7 @@ func (tool *Tool) createForwarder(params *CreateForwarderParams) (*CreateForward
|
||||
defer conn.Close()
|
||||
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
opReq := &mlbctl.CreateForwarderParams{
|
||||
Type: params.Type,
|
||||
Lport: params.Lport,
|
||||
Dport: params.Dport,
|
||||
Destinations: params.Addresses,
|
||||
|
||||
Reference in New Issue
Block a user