1 parent 6524dd9 commit c35a05cCopy full SHA for c35a05c
1 file changed
mocket/ssl/context.py
@@ -125,9 +125,10 @@ def wrap_bio(
125
126
effective_host = hostname if hostname is not None else current_host
127
ssl_obj._host = effective_host
128
+ if current_port is not None:
129
+ ssl_obj._port = current_port
130
if effective_host is not None and current_port is not None:
131
ssl_obj._address = (effective_host, current_port)
- ssl_obj._port = current_port
132
return ssl_obj
133
134
0 commit comments