diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 210c0df..e1e2e9c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,12 +4,7 @@
-
-
-
-
-
-
+
@@ -466,7 +461,15 @@
1726836930251
-
+
+
+ 1726841190285
+
+
+
+ 1726841190285
+
+
@@ -507,7 +510,6 @@
-
@@ -532,6 +534,7 @@
-
+
+
\ No newline at end of file
diff --git a/wg_func.py b/wg_func.py
index bdbef79..63b9ebe 100755
--- a/wg_func.py
+++ b/wg_func.py
@@ -345,7 +345,7 @@ class OnOff:
class ExportTunnels:
@staticmethod
def wg_export():
-
+ _u1 = str(_u[6:])
now_time = datetime.now()
now_datetime = now_time.strftime('wg-exp-' + '%m-%d-%Y' + '-' + '%H:%M')
tl = ListTunnels.tl_list()
@@ -354,10 +354,12 @@ class ExportTunnels:
wg_tar = str(_u) + '/' + now_datetime
p_to_conf = Path('/etc/wire_py/')
shutil.make_archive(wg_tar, 'zip', p_to_conf)
+ os.chown(wg_tar + '.zip', 1000, 1000)
with zipfile.ZipFile((wg_tar + '.zip'), 'r') as zf:
if len(zf.namelist()) != 0:
msg_exp_successful_window()
else:
msg_exp_fail_window()
+
except TypeError:
pass