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.
pull/1502/head
Eric Leblond 10 years ago committed by Victor Julien
parent 1e8142c699
commit e2c557cfdb

@ -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")

Loading…
Cancel
Save