]> git.ipfire.org Git - thirdparty/strongswan.git/commit
vici: Fix connecting to socket in Python bindings on Windows
authorTobias Brunner <tobias@strongswan.org>
Thu, 31 Aug 2023 09:39:52 +0000 (11:39 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 31 Aug 2023 09:39:52 +0000 (11:39 +0200)
commit0bff5c98bcfa7cd6855af5f35812872191317489
treed63bb25b6e9d0e457a7bf36af4caf679aa871383
parente2bba1e2cfba7df4d91978d010fdf31ab03fc9f7
vici: Fix connecting to socket in Python bindings on Windows

socket.connect() takes a single argument with the address that depends
on the address family, for TCP it's a tuple with IP and port.

Fixes: 00a75e332f29 ("vici: Create default TCP socket on Windows in Python bindings")
Closes strongswan/strongswan#1874
src/libcharon/plugins/vici/python/vici/session.py