From 07bca790bd0a91381db201954b95fb446f080880 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Wed, 27 Apr 2016 22:50:42 +0200 Subject: [PATCH] Use the right variable for the test ... --- host/udpbridge/questions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/udpbridge/questions.pl b/host/udpbridge/questions.pl index c146d50..1f2e972 100755 --- a/host/udpbridge/questions.pl +++ b/host/udpbridge/questions.pl @@ -35,7 +35,7 @@ sub send_to { my $socket = new IO::Socket::INET(Proto => 'udp'); my $servaddr = sockaddr_in($port, inet_aton($server)); $socket->send($request, 0, $servaddr); - unless ($type =~ /G/) { + unless ($request =~ /G/) { print "Request sent.\n"; return; } -- 2.43.0