Message from local peer does not means internet connection

This commit is contained in:
shortcutme 2018-02-08 18:12:08 +01:00
parent 1ad021ffa9
commit ae0a78dfb1
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -48,7 +48,7 @@ class FileServer(ConnectionServer):
self.log.debug("FileRequest: %s %s" % (str(connection), message["cmd"]))
req = FileRequest(self, connection)
req.route(message["cmd"], message.get("req_id"), message.get("params"))
if not self.has_internet:
if not self.has_internet and not connection.is_private_ip:
self.has_internet = True
self.onInternetOnline()