Remove remote address if it still exists in the config file

This commit is contained in:
mcarlton00 2019-12-13 19:53:38 -05:00 committed by GitHub
parent 842b0813a3
commit 14fd9253b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,6 +401,9 @@ def get_credentials():
# If manual is present, local should always be here, but better to be safe
if 'LocalAddress' in server:
del server['LocalAddress']
# Functionality removed in #60
if 'RemoteAddress' in server:
del server['RemoteAddress']
elif 'LocalAddress' in server:
server['address'] = server['LocalAddress']
del server['LocalAddress']