Skip to content

Commit

Permalink
Merge remote-tracking branch 'claws/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeo committed Feb 10, 2016
2 parents 26892b0 + 6a24884 commit 9cda03b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/connectivity/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
from decorators import with_logger


from PyQt4 import QtGui, uic


@with_logger
class RelayTest(QObject):
finished = pyqtSignal()
Expand Down Expand Up @@ -150,9 +153,12 @@ def handle_SendNatPacket(self, msg):
self._socket.writeDatagram(b'\x08'+message.encode(), QHostAddress(host), int(port))

def handle_ConnectivityState(self, msg):
from client import ClientState
state, addr = msg['args']
if state == 'BLOCKED':
self._logger.warning("Outbound traffic is blocked")
QtGui.QMessageBox.warning(None, "Traffic Blocked", "Your outbound traffic appears to be blocked. Try restarting FAF. <br/> If the error persists please contact a moderator and send your logs. <br/> We are already working on a solution to this problem.")
self._client.state = ClientState.NONE
else:
host, port = addr.split(':')
self.state, self.mapped_address = state, (host, port)
Expand Down

0 comments on commit 9cda03b

Please sign in to comment.