mirror of
https://github.com/mandiant/gopacket
synced 2026-06-21 13:57:02 +00:00
bf605498aa
Four tools register their flags directly via the stdlib flag package rather than going through flags.Parse, so they didn't inherit -proxy and transport.Configure was never called (silent no-op for the user). Wires each to flags.RegisterProxyFlag, a two-line integration that registers -proxy and returns a finalizer to call after flag.Parse(): - tools/CheckLDAPStatus - tools/DumpNTLMInfo - tools/rpcmap (also adds the pkg/flags import) - tools/mssqlinstance (also adds the pkg/flags import; -proxy will immediately error with ErrUDPUnderProxy since the tool's whole job is a UDP SQL Browser probe, but the error is surfaced clearly instead of silently bypassing)