From 69b3a7a1b5896e7139c08ba185d4b225253fceed Mon Sep 17 00:00:00 2001 From: Lennart Regebro Date: Thu, 4 Jan 2024 17:43:35 +0100 Subject: [PATCH] Always default the uno interface to 127.0.0.1 --- CHANGES.rst | 7 +++++-- src/unoserver/server.py | 4 +--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index f0a2b97..c1ed093 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,8 +1,11 @@ 2.1 (unreleased) ---------------- -- The remote didn't work for the outfile if you used port forwarding - from localhost. +- Specifying `--host-location=remote` didn't work for the outfile if you + used port forwarding from localhost. + +- Always default the uno interface to 127.0.0.1, no matter what the XMLRPC + interface is. 2.0 (2023-10-19) diff --git a/src/unoserver/server.py b/src/unoserver/server.py index 5bbeb39..2126e41 100644 --- a/src/unoserver/server.py +++ b/src/unoserver/server.py @@ -161,7 +161,7 @@ def main(): ) parser.add_argument( "--uno-interface", - default=None, + default="127.0.0.1", help="The interface used by the Libreoffice UNO server", ) parser.add_argument( @@ -202,8 +202,6 @@ def main(): if args.user_installation is not None: user_installation = Path(args.user_installation).as_uri() - if args.uno_interface is None: - args.uno_interface = args.interface if args.uno_port == args.port: raise RuntimeError("--port and --uno-port must be different")