From: Eric Leblond Date: Sun, 17 May 2015 16:57:48 +0000 (+0200) Subject: suri-graphite: fix port option X-Git-Tag: suricata-3.0RC1~402 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c557cfdb48ac13ed535ee672d49d58b5a772c5;p=thirdparty%2Fsuricata.git suri-graphite: fix port option If port is specified on command line we need to convert it as an integer before using it as argument to connect. --- diff --git a/contrib/suri-graphite b/contrib/suri-graphite index 7a71ecf2dd..83422e89d5 100755 --- a/contrib/suri-graphite +++ b/contrib/suri-graphite @@ -35,7 +35,7 @@ sc = suricatasc.SuricataSC(args.socket) sc.connect() sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -sck.connect((args.host, args.port)) +sck.connect((args.host, int(args.port))) while 1: res = sc.send_command("dump-counters")