From fd94ff64877ccf8a44de476b791e741720b2082d Mon Sep 17 00:00:00 2001 From: Anton Protopopov Date: Fri, 17 Jun 2022 16:03:33 +0000 Subject: [PATCH] agnhost/netexec: fix an error message The error message inside the UDP server used a SCTP port instead of a UDP port --- test/images/agnhost/netexec/netexec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/images/agnhost/netexec/netexec.go b/test/images/agnhost/netexec/netexec.go index f1510a0fcc4..a63054f7771 100644 --- a/test/images/agnhost/netexec/netexec.go +++ b/test/images/agnhost/netexec/netexec.go @@ -634,7 +634,7 @@ func redirectHandler(w http.ResponseWriter, r *http.Request) { // udp server supports the hostName, echo and clientIP commands. func startUDPServer(address string, udpPort int) { serverAddress, err := net.ResolveUDPAddr("udp", net.JoinHostPort(address, strconv.Itoa(udpPort))) - assertNoError(err, fmt.Sprintf("failed to resolve UDP address for port %d", sctpPort)) + assertNoError(err, fmt.Sprintf("failed to resolve UDP address for port %d", udpPort)) serverConn, err := net.ListenUDP("udp", serverAddress) assertNoError(err, fmt.Sprintf("failed to create listener for UDP address %v", serverAddress)) defer serverConn.Close()