fix: identify APT local-file handoff failure and verify Windows admin tunnel
Rust development slice / linux (push) Failing after 6s

This commit is contained in:
2026-11-13 14:42:44 +01:00
parent a707d80e40
commit e18fae0e8a
12 changed files with 483 additions and 17 deletions
+4 -2
View File
@@ -14,9 +14,11 @@ def select_file(mode, request_path, config, now):
if mode == 'acme':
match = re.fullmatch(r'/\.well-known/acme-challenge/([A-Za-z0-9_-]{20,128})', request_path)
return Path('/srv/rmm-bootstrap-acme') / match[1] if match else None
if now >= dt.datetime.fromisoformat(config['expires_at']) or request_path != config['url_path']:
if now >= dt.datetime.fromisoformat(config['expires_at']):
return None
return Path('/srv/rmm-bootstrap-download/windows-dev-access.zip')
filename=config.get('public_files',{config['url_path']:'windows-dev-access.zip'}).get(request_path)
if filename not in ('windows-dev-access.zip','windows-dev-repair.zip'):return None
return Path('/srv/rmm-bootstrap-download')/filename
def main():