Upload files to "/"

This commit is contained in:
2025-10-30 15:24:41 +01:00
commit ef7852412b
2 changed files with 78 additions and 0 deletions

21
client.py Normal file
View File

@@ -0,0 +1,21 @@
import xmlrpc.client, argparse
parser = argparse.ArgumentParser()
parser.add_argument(
"--enable",
action="store_true",
)
parser.add_argument(
"--disable",
action="store_true",
)
args = parser.parse_args()
proxy = xmlrpc.client.ServerProxy("http://localhost:6767/")
if args.enable:
result = proxy.enable()
print(result)
elif args.disable:
result = proxy.disable()
print(result)