def _getUsername(self): user = config.getUsername() Logger.log( "Using Datho free servers:%s" % self._usingDathoFreeServers(), Logger.LOG_DEBUG) if VPNServerManager.getInstance().usingDathoVPNServers( ) or config.isVPNCustom(): return user return user + config.getPaidServersPostFix()
def Main(): common.CheckVersion() common.CheckUsername() if config.isVPNCustom(): connectToCustomServer() return gui.addDir(arguments, __language__(30001), _SETTINGS, isFolder=False) gui.addDir(arguments, __language__(30002), _KILL, isFolder=False) gui.addDir(arguments, ' ', _SEPARATOR, isFolder=False) try: for country in VPNServerManager.getInstance().getCountries(): gui.addDir(arguments, country[0], _COUNTRY, abrv=country[1], thumbnail=country[2]) except NoConnectionError: gui.DialogOK( __language__(30003), __language__(30004), __language__(30005))
def Main(): common.CheckVersion() common.CheckUsername() if config.isVPNCustom(): connectToCustomServer() return gui.addDir(arguments, __language__(30001), _SETTINGS, isFolder=False) gui.addDir(arguments, __language__(30002), _KILL, isFolder=False) gui.addDir(arguments, ' ', _SEPARATOR, isFolder=False) try: for country in VPNServerManager.getInstance().getCountries(): gui.addDir(arguments, country[0], _COUNTRY, abrv=country[1], thumbnail=country[2]) except NoConnectionError: gui.DialogOK(__language__(30003), __language__(30004), __language__(30005))
def _getUsername(self): user = config.getUsername() Logger.log("Using Datho free servers:%s" % self._usingDathoFreeServers(), Logger.LOG_DEBUG) if VPNServerManager.getInstance().usingDathoVPNServers() or config.isVPNCustom(): return user return user + config.getPaidServersPostFix()
def _usingDathoFreeServers(self): return config.isVPNCustom() is False and vpnmanager.VPNServerManager.getInstance().usingDathoVPNServers()
def _usingDathoFreeServers(self): return config.isVPNCustom( ) is False and vpnmanager.VPNServerManager.getInstance( ).usingDathoVPNServers()