Don't create new connections in offline mode

This commit is contained in:
shortcutme 2019-04-15 15:47:17 +02:00
parent 2326cf3de8
commit 235b8f359c
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class ConnectionServer(object):
return connection
# No connection found
if create: # Allow to create new connection if not found
if create and not config.offline: # Allow to create new connection if not found
if port == 0:
raise Exception("This peer is not connectable")