Skip to content

Commit c624284

Browse files
authored
Add port parameter to Client (#144)
1 parent 7c5b115 commit c624284

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

duo_client/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,16 @@ def __init__(self, ikey, skey, host,
162162
timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
163163
paging_limit=100,
164164
digestmod=hashlib.sha1, # noqa: DUO130, HMAC-SHA1 still secure
165-
sig_version=2
165+
sig_version=2,
166+
port=None
166167
):
167168
"""
168169
ca_certs - Path to CA pem file.
169170
"""
170171
self.ikey = ikey
171172
self.skey = skey
172173
self.host = host
173-
self.port = None
174+
self.port = port
174175
self.sig_timezone = sig_timezone
175176
if ca_certs is None:
176177
ca_certs = DEFAULT_CA_CERTS

0 commit comments

Comments
 (0)