Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
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))
Exemplo n.º 3
0
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))
Exemplo n.º 4
0
 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()
Exemplo n.º 5
0
 def _usingDathoFreeServers(self):
     return config.isVPNCustom() is False and vpnmanager.VPNServerManager.getInstance().usingDathoVPNServers()
Exemplo n.º 6
0
 def _usingDathoFreeServers(self):
     return config.isVPNCustom(
     ) is False and vpnmanager.VPNServerManager.getInstance(
     ).usingDathoVPNServers()