view uprop.py @ 2:22626f229f0f default tip

新增2.14.1文件,之前的文件归档到对应版本文件夹
author Schmit <liny.jii@nnsui.com>
date Thu, 26 Sep 2024 13:10:17 +0800
parents c7a61586b401
children
line wrap: on
line source

from pyovpn.lic import uprop2
old_figure = None
 
def new_figure(self, licdict):
      ret = old_figure(self, licdict)
      ret['concurrent_connections'] = 2048
      return ret
 
for x in dir(uprop2):
      if x[:2] == '__':
         continue
      if x == 'UsageProperties':
         exec('old_figure = uprop2.UsageProperties.figure')
         exec('uprop2.UsageProperties.figure = new_figure')
      exec('%s = uprop2.%s' % (x, x))