mirror of
https://github.com/naruxde/revpipyload.git
synced 2025-11-09 07:28:03 +01:00
Set always localhost to ACL with revpipyload_secure_installation
This commit is contained in:
@@ -131,7 +131,8 @@ try:
|
|||||||
"grant access? (y/N) "
|
"grant access? (y/N) "
|
||||||
).lower()
|
).lower()
|
||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
lst_ip = []
|
# Always set local host
|
||||||
|
lst_ip = ["127.*.*.*,4 "]
|
||||||
while True:
|
while True:
|
||||||
cmd = input(
|
cmd = input(
|
||||||
"Enter single IPv4 address | "
|
"Enter single IPv4 address | "
|
||||||
@@ -142,7 +143,9 @@ try:
|
|||||||
save_xmlrpcacls()
|
save_xmlrpcacls()
|
||||||
break
|
break
|
||||||
elif match(r"([\d*]{1,3}\.){3}[\d*]{1,3}", cmd):
|
elif match(r"([\d*]{1,3}\.){3}[\d*]{1,3}", cmd):
|
||||||
lst_ip.append("{0},4".format(cmd))
|
ip_level = "{0},4".format(cmd)
|
||||||
|
if ip_level not in lst_ip:
|
||||||
|
lst_ip.append(ip_level)
|
||||||
else:
|
else:
|
||||||
stderr.write("Wrong format (0.0.0.0)\n")
|
stderr.write("Wrong format (0.0.0.0)\n")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user