mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-30 10:58:09 +03:00
Handle missing default gateways
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -909,6 +909,16 @@ class ConnectAction(Action):
|
||||
)
|
||||
)
|
||||
|
||||
if len(defaultGateway) == 0:
|
||||
logger.error(f'no gateway address found')
|
||||
|
||||
self.coreRunning = False
|
||||
self.disconnectReason = (
|
||||
_('Unable to connect') + ': ' + _('No gateway address found')
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
if len(defaultGateway) != 1:
|
||||
logger.error(f'found multiple gateway addresses: {defaultGateway}')
|
||||
|
||||
|
||||
@@ -956,6 +956,11 @@ TRANSLATION = {
|
||||
'ZH': 'VPN模式已停止',
|
||||
'TW': 'VPN模式已停止',
|
||||
},
|
||||
'No gateway address found': {
|
||||
'ES': 'No se encontró ninguna dirección de puerta de enlace',
|
||||
'ZH': '找不到网关地址',
|
||||
'TW': '找不到網關地址',
|
||||
},
|
||||
'Multiple gateway addresses found': {
|
||||
'ES': 'Se encontraron varias direcciones de puerta de enlace',
|
||||
'ZH': '找到多个网关地址',
|
||||
|
||||
Reference in New Issue
Block a user