mirror of
https://github.com/naruxde/revpipyload.git
synced 2026-08-16 05:05:52 +02:00
fix: Clarify TCP and Unix socket connection in secure-installation
Adjusted user prompts to clearly distinguish between TCP and Unix socket options for XML-RPC configuration. Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
@@ -107,12 +107,14 @@ def main() -> int:
|
|||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
conf.set("XMLRPC", "xmlrpc", "1")
|
conf.set("XMLRPC", "xmlrpc", "1")
|
||||||
conf.set("XMLRPC", "bindip", "socket")
|
conf.set("XMLRPC", "bindip", "socket")
|
||||||
|
xmlrpc_unix_socket = True
|
||||||
xmlrpcacl.acl = ""
|
xmlrpcacl.acl = ""
|
||||||
save_xmlrpcacls()
|
save_xmlrpcacls()
|
||||||
|
|
||||||
elif input("\nDo you want to allow connections from remote hosts? (y/N) ").lower() == "y":
|
elif input("\nDo you want to allow native TCP connections from remote hosts? (y/N) ").lower() == "y":
|
||||||
conf.set("XMLRPC", "xmlrpc", "1")
|
conf.set("XMLRPC", "xmlrpc", "1")
|
||||||
conf.set("XMLRPC", "bindip", "*")
|
conf.set("XMLRPC", "bindip", "*")
|
||||||
|
xmlrpc_unix_socket = False
|
||||||
|
|
||||||
cmd = input("Reset the ACL file to allow all private networks? (y/N) ").lower()
|
cmd = input("Reset the ACL file to allow all private networks? (y/N) ").lower()
|
||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
@@ -145,12 +147,13 @@ def main() -> int:
|
|||||||
stderr.write("Wrong format (0.0.0.0)\n")
|
stderr.write("Wrong format (0.0.0.0)\n")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
cmd = input("Do you want to allow connections from localhost ONLY? (y/N) ").lower()
|
cmd = input("Do you want to allow TCP connections from localhost ONLY? (y/N) ").lower()
|
||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
conf.set("XMLRPC", "xmlrpc", "1")
|
conf.set("XMLRPC", "xmlrpc", "1")
|
||||||
conf.set("XMLRPC", "bindip", "127.0.0.1")
|
conf.set("XMLRPC", "bindip", "127.0.0.1")
|
||||||
|
xmlrpc_unix_socket = False
|
||||||
|
|
||||||
cmd = input("Reset the ACL file to allow localhost connections only? (y/N) ").lower()
|
cmd = input("Reset the ACL file to allow localhost TCP connections only? (y/N) ").lower()
|
||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
xmlrpcacl.acl = "127.*.*.*,4 "
|
xmlrpcacl.acl = "127.*.*.*,4 "
|
||||||
save_xmlrpcacls()
|
save_xmlrpcacls()
|
||||||
@@ -163,6 +166,7 @@ def main() -> int:
|
|||||||
if cmd == "y":
|
if cmd == "y":
|
||||||
conf.set("XMLRPC", "xmlrpc", "0")
|
conf.set("XMLRPC", "xmlrpc", "0")
|
||||||
conf.set("XMLRPC", "bindip", "127.0.0.1")
|
conf.set("XMLRPC", "bindip", "127.0.0.1")
|
||||||
|
xmlrpc_unix_socket = False
|
||||||
xmlrpcacl.acl = ""
|
xmlrpcacl.acl = ""
|
||||||
save_xmlrpcacls()
|
save_xmlrpcacls()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user