From 326affe3644d2c16df3440beccc166904dd5c7f3 Mon Sep 17 00:00:00 2001 From: adman Date: Mon, 17 Aug 2026 18:07:51 +0200 Subject: [PATCH] add version flag to packet inspector --- cmd/strom/packet_inspector/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/strom/packet_inspector/main.go b/cmd/strom/packet_inspector/main.go index c8e558f..604ac77 100644 --- a/cmd/strom/packet_inspector/main.go +++ b/cmd/strom/packet_inspector/main.go @@ -26,6 +26,7 @@ var Token = Cmd.String("token", "", "token to use") var TargetAddr = Cmd.String("addr", "127.0.0.1:25565", "address to connect to") var ListenAddr = Cmd.String("listen", "127.0.0.1:25566", "address to listen on") var TrueForward = Cmd.Bool("true-forward", false, "forward packets without modification -name and custom server status wont work") +var Version = Cmd.String("protocol-version", "", "protocol version to use; empty for auto") type Proxy struct { Client, Servee *proto.Conn @@ -182,7 +183,7 @@ func Run(args []string) (err error) { if err != nil { return } - c, err := client.Connect(nil, *TargetAddr, "") + c, err := client.Connect(nil, *TargetAddr, *Version) if err != nil { return }