From aa5c2f7f0c9a6f25a77814662fba7bfb8bfd1a11 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Wed, 19 Aug 2026 20:37:23 +0200 Subject: [PATCH] 0.9.7.1: add runtime Nextcloud target resolver --- runtime/lib/resolve-nextcloud-target.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 runtime/lib/resolve-nextcloud-target.php diff --git a/runtime/lib/resolve-nextcloud-target.php b/runtime/lib/resolve-nextcloud-target.php new file mode 100644 index 0000000..52b4d1b --- /dev/null +++ b/runtime/lib/resolve-nextcloud-target.php @@ -0,0 +1,24 @@ +#!/usr/bin/env php +'); + $url = rtrim(trim((string)$argv[1]), '/'); + bratonien_tools_nc_transport_scheme($url); + $host = bratonien_tools_nc_transport_host($url); + echo bratonien_tools_nc_transport_public_ip($host)."\n"; + exit(0); +} +catch (Throwable $e) +{ + fwrite(STDERR, $e->getMessage()."\n"); + exit(1); +}