916 peerAddress = sock.peerAddress().toString() |
916 peerAddress = sock.peerAddress().toString() |
917 if peerAddress not in Preferences.getDebugger("AllowedHosts"): |
917 if peerAddress not in Preferences.getDebugger("AllowedHosts"): |
918 # the peer is not allowed to connect |
918 # the peer is not allowed to connect |
919 res = EricMessageBox.yesNo( |
919 res = EricMessageBox.yesNo( |
920 None, |
920 None, |
921 self.tr("Connection from illegal host"), |
921 self.tr("Connection from unknown host"), |
922 self.tr( |
922 self.tr( |
923 """<p>A connection was attempted by the illegal host""" |
923 """<p>A connection was attempted by the unknown host""" |
924 """ <b>{0}</b>. Accept this connection?</p>""" |
924 """ <b>{0}</b>. Accept this connection?</p>""" |
925 ).format(peerAddress), |
925 ).format(peerAddress), |
926 icon=EricMessageBox.Warning, |
926 icon=EricMessageBox.Warning, |
927 ) |
927 ) |
928 if not res: |
928 if not res: |