annotate 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 |
|
rev |
line source |
1
|
1 from pyovpn.lic import uprop2
|
|
2 old_figure = None
|
|
3
|
|
4 def new_figure(self, licdict):
|
|
5 ret = old_figure(self, licdict)
|
|
6 ret['concurrent_connections'] = 2048
|
|
7 return ret
|
|
8
|
|
9 for x in dir(uprop2):
|
|
10 if x[:2] == '__':
|
|
11 continue
|
|
12 if x == 'UsageProperties':
|
|
13 exec('old_figure = uprop2.UsageProperties.figure')
|
|
14 exec('uprop2.UsageProperties.figure = new_figure')
|
|
15 exec('%s = uprop2.%s' % (x, x)) |