src/eric7/Debugger/DebugServer.py

branch
eric7
changeset 10311
0a141f9ae677
parent 10129
d4d210405367
child 10321
4a017fdf316f
equal deleted inserted replaced
10310:41a744329b73 10311:0a141f9ae677
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:

eric ide

mercurial