From 0872bb820c75a522c3947c372b0ebd63b9086c54 Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 20 Oct 2020 10:17:52 +0200 Subject: [PATCH] chg: [clamav] TCP port connection must be an integer --- misp_modules/modules/expansion/clamav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/clamav.py b/misp_modules/modules/expansion/clamav.py index 2358691..2eb0c62 100644 --- a/misp_modules/modules/expansion/clamav.py +++ b/misp_modules/modules/expansion/clamav.py @@ -51,7 +51,7 @@ def connect_to_clamav(connection_string: str) -> clamd.ClamdNetworkSocket: return clamd.ClamdUnixSocket(connection_string.replace("unix://", "")) elif ":" in connection_string: host, port = connection_string.split(":") - return clamd.ClamdNetworkSocket(host, port) + return clamd.ClamdNetworkSocket(host, int(port)) else: raise Exception("ClamAV connection string is invalid")