uftpd bugfix: bind API requires string, not int

This commit is contained in:
Amir Gonnen 2022-06-29 00:03:27 +03:00
parent 5118122946
commit b4ef72e043

View File

@ -468,7 +468,7 @@ def start(port=21, verbose=0, splash=True):
datasocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
datasocket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
datasocket.bind(('0.0.0.0', _DATA_PORT))
datasocket.bind(('0.0.0.0', str(_DATA_PORT)))
datasocket.listen(1)
datasocket.settimeout(10)