diff uprop.py @ 1:c7a61586b401

Add File Frist
author Pluto <meokcin@gmail.com>
date Sun, 01 Sep 2024 16:16:40 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/uprop.py	Sun Sep 01 16:16:40 2024 +0800
@@ -0,0 +1,15 @@
+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))
\ No newline at end of file