comparison uprop.py @ 1:c7a61586b401

Add File Frist
author Pluto <meokcin@gmail.com>
date Sun, 01 Sep 2024 16:16:40 +0800
parents
children
comparison
equal deleted inserted replaced
0:c1b44b8579a4 1:c7a61586b401
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))