Commit 53d7b9d9 authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! ERP5Type.ConnectionPlugin.SFTPConnection: Add bind address support.

parent 2b0f1e9b
...@@ -74,7 +74,7 @@ class SFTPConnection: ...@@ -74,7 +74,7 @@ class SFTPConnection:
# XXX: Expects bind address to be of same family as hostname. # XXX: Expects bind address to be of same family as hostname.
# May not be easy if name resolution is involved. # May not be easy if name resolution is involved.
# Try to reconciliate them ? # Try to reconciliate them ?
sock.bind((self.bind_addres, 0)) sock.bind((self.bind_address, 0))
retry_on_signal(lambda: sock.connect((hostname, port))) retry_on_signal(lambda: sock.connect((hostname, port)))
break break
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment