added initial typing of forwarders, now only tcp

This commit is contained in:
2026-03-26 17:17:18 +02:00
parent e05d610882
commit 230022f856
8 changed files with 115 additions and 68 deletions
+2
View File
@@ -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)