Mercurial > ovpnas_crack
annotate uprop.py @ 1:c7a61586b401
Add File Frist
author | Pluto <meokcin@gmail.com> |
---|---|
date | Sun, 01 Sep 2024 16:16:40 +0800 |
parents | |
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)) |