iup-nft 0.5__py3-none-any.whl → 0.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iup/main.py +6 -6
- iup/main_iupd.py +6 -6
- {iup_nft-0.5.dist-info → iup_nft-0.6.dist-info}/METADATA +1 -1
- iup_nft-0.6.dist-info/RECORD +9 -0
- iup_nft-0.5.dist-info/RECORD +0 -9
- {iup_nft-0.5.dist-info → iup_nft-0.6.dist-info}/WHEEL +0 -0
- {iup_nft-0.5.dist-info → iup_nft-0.6.dist-info}/entry_points.txt +0 -0
- {iup_nft-0.5.dist-info → iup_nft-0.6.dist-info}/top_level.txt +0 -0
iup/main.py
CHANGED
|
@@ -99,16 +99,16 @@ def update_rule_by_ssh(hostnames: list, config: Config):
|
|
|
99
99
|
print('msg', msg) if msg else print()
|
|
100
100
|
print('err', err) if err else print()
|
|
101
101
|
if config.refresh:
|
|
102
|
-
if
|
|
103
|
-
print('reboot
|
|
104
|
-
_, stdout, stderr = ssh.exec_command(
|
|
102
|
+
if need_restart_cdns:
|
|
103
|
+
print('reboot chinadns')
|
|
104
|
+
_, stdout, stderr = ssh.exec_command(CMD_CHNDNS)
|
|
105
105
|
msg = stdout.readlines()
|
|
106
106
|
err = stderr.readlines()
|
|
107
107
|
print('msg', msg) if msg else print()
|
|
108
108
|
print('err', err) if err else print()
|
|
109
|
-
if
|
|
110
|
-
print('reboot
|
|
111
|
-
_, stdout, stderr = ssh.exec_command(
|
|
109
|
+
if need_restart_dns:
|
|
110
|
+
print('reboot dnsmasq')
|
|
111
|
+
_, stdout, stderr = ssh.exec_command(CMD_DNSMASQ)
|
|
112
112
|
msg = stdout.readlines()
|
|
113
113
|
err = stderr.readlines()
|
|
114
114
|
print('msg', msg) if msg else print()
|
iup/main_iupd.py
CHANGED
|
@@ -100,16 +100,16 @@ def update_rule_by_ssh(hostnames: list, config: Config):
|
|
|
100
100
|
print('msg', msg) if msg else print()
|
|
101
101
|
print('err', err) if err else print()
|
|
102
102
|
if config.refresh:
|
|
103
|
-
if
|
|
104
|
-
print('reboot
|
|
105
|
-
_, stdout, stderr = ssh.exec_command(
|
|
103
|
+
if need_restart_cdns:
|
|
104
|
+
print('reboot chinadns')
|
|
105
|
+
_, stdout, stderr = ssh.exec_command(CMD_CHNDNS)
|
|
106
106
|
msg = stdout.readlines()
|
|
107
107
|
err = stderr.readlines()
|
|
108
108
|
print('msg', msg) if msg else print()
|
|
109
109
|
print('err', err) if err else print()
|
|
110
|
-
if
|
|
111
|
-
print('reboot
|
|
112
|
-
_, stdout, stderr = ssh.exec_command(
|
|
110
|
+
if need_restart_dns:
|
|
111
|
+
print('reboot dnsmasq')
|
|
112
|
+
_, stdout, stderr = ssh.exec_command(CMD_DNSMASQ)
|
|
113
113
|
msg = stdout.readlines()
|
|
114
114
|
err = stderr.readlines()
|
|
115
115
|
print('msg', msg) if msg else print()
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
iup/__init__.py,sha256=CJiAR6OdV8OFR6zNHs9vvRnJV8UgZ_c7dcvaVHeSHkY,112
|
|
2
|
+
iup/config.py,sha256=Ecg9m83D_Cp_inYrltt--oPcupVvCw9oo8m5ukKyWLA,2862
|
|
3
|
+
iup/main.py,sha256=cO20fqi4so3tW_qT_zRUsbdgWAWt7FQl7_6C8Knc0tI,5508
|
|
4
|
+
iup/main_iupd.py,sha256=bbTA3H_VPVyyz5g46ZMiSE7Yt0YLweD9LLVbtosjir8,5400
|
|
5
|
+
iup_nft-0.6.dist-info/METADATA,sha256=19bv18biH47C3NjIeTEb8HbYJwaat9oD2t34TizNTNw,209
|
|
6
|
+
iup_nft-0.6.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
7
|
+
iup_nft-0.6.dist-info/entry_points.txt,sha256=__DnLePT02PMCliwlVR7zwdJVJXmIWIwa5jeAb-U9rM,94
|
|
8
|
+
iup_nft-0.6.dist-info/top_level.txt,sha256=abec3YOzJRti4IxzOLIn-uDOPTtYUE-Uv65cAv1v8JY,4
|
|
9
|
+
iup_nft-0.6.dist-info/RECORD,,
|
iup_nft-0.5.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
iup/__init__.py,sha256=CJiAR6OdV8OFR6zNHs9vvRnJV8UgZ_c7dcvaVHeSHkY,112
|
|
2
|
-
iup/config.py,sha256=Ecg9m83D_Cp_inYrltt--oPcupVvCw9oo8m5ukKyWLA,2862
|
|
3
|
-
iup/main.py,sha256=j7-6cFrI6_RFkWR-Y4_LChs3fBVb1JGKQ8aW_w_9kMk,5508
|
|
4
|
-
iup/main_iupd.py,sha256=Jq0JioHvsRhQhAM0Rroro3tgvyh-obaSniINzq8wqm8,5400
|
|
5
|
-
iup_nft-0.5.dist-info/METADATA,sha256=9zDVl_0O8SqEDl64F2th2tH-0nU4iTaOL3N679Fy9QI,209
|
|
6
|
-
iup_nft-0.5.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
7
|
-
iup_nft-0.5.dist-info/entry_points.txt,sha256=__DnLePT02PMCliwlVR7zwdJVJXmIWIwa5jeAb-U9rM,94
|
|
8
|
-
iup_nft-0.5.dist-info/top_level.txt,sha256=abec3YOzJRti4IxzOLIn-uDOPTtYUE-Uv65cAv1v8JY,4
|
|
9
|
-
iup_nft-0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|