fix connect on windows
This commit is contained in:
@@ -362,7 +362,10 @@ class Interface(threading.Thread):
|
|||||||
if e.errno != 1:
|
if e.errno != 1:
|
||||||
return
|
return
|
||||||
if is_new:
|
if is_new:
|
||||||
os.rename(temporary_path, cert_path + '.rej')
|
rej = cert_path + '.rej'
|
||||||
|
if os.path.exists(rej):
|
||||||
|
os.unlink(rej)
|
||||||
|
os.rename(temporary_path, rej)
|
||||||
else:
|
else:
|
||||||
if cert_has_expired(cert_path):
|
if cert_has_expired(cert_path):
|
||||||
print_error("certificate has expired:", cert_path)
|
print_error("certificate has expired:", cert_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user