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 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,