added initial typing of forwarders, now only tcp
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
type DeleteForwarderParams struct {
|
||||
Hostname string
|
||||
Type string
|
||||
Lport uint32
|
||||
}
|
||||
type DeleteForwarderResult struct{}
|
||||
@@ -37,6 +38,7 @@ func (tool *Tool) deleteForwarder(params *DeleteForwarderParams) (*DeleteForward
|
||||
defer conn.Close()
|
||||
ctx, _ := context.WithTimeout(context.Background(), 1*time.Second)
|
||||
opReq := &mlbctl.DeleteForwarderParams{
|
||||
Type: params.Type,
|
||||
Lport: params.Lport,
|
||||
}
|
||||
_, err = cli.DeleteForwarder(ctx, opReq)
|
||||
|
||||
Reference in New Issue
Block a user