From cd76e093a8b00168372e154339e805ccb67e3d1a Mon Sep 17 00:00:00 2001 From: gkc Date: Wed, 25 Oct 2023 13:07:15 +0100 Subject: [PATCH] fix: Revert changes to SSHNPImpl for cacheability of the `username.$device` and `device_info.$device` keys --- packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart | 4 +++- packages/sshnoports/pubspec.lock | 7 +++---- packages/sshnp_gui/pubspec.lock | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart b/packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart index 6406271d1..3b0b5305d 100644 --- a/packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart +++ b/packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart @@ -151,6 +151,7 @@ class SSHNPDImpl implements SSHNPD { var metaData = Metadata() ..isPublic = false ..isEncrypted = true + ..ttr = -1 // we want this to be cacheable by managerAtsign ..namespaceAware = true; var atKey = AtKey() @@ -856,7 +857,8 @@ class SSHNPDImpl implements SSHNPD { var metaData = Metadata() ..isPublic = false ..isEncrypted = true - ..ttl = ttl + ..ttr = -1 // we want this to be cacheable by managerAtsign + ..ttl = ttl // but to expire after 30 days ..updatedAt = DateTime.now() ..namespaceAware = true; diff --git a/packages/sshnoports/pubspec.lock b/packages/sshnoports/pubspec.lock index 65ed4c0e0..7b46c151e 100644 --- a/packages/sshnoports/pubspec.lock +++ b/packages/sshnoports/pubspec.lock @@ -556,10 +556,9 @@ packages: noports_core: dependency: "direct main" description: - name: noports_core - sha256: "02331701ef45e985a637d17319e9969deaa6d53b9b171bb234d47e9c60aee94e" - url: "https://pub.dev" - source: hosted + path: "../noports_core" + relative: true + source: path version: "4.0.0-dev.3" openssh_ed25519: dependency: transitive diff --git a/packages/sshnp_gui/pubspec.lock b/packages/sshnp_gui/pubspec.lock index 75f428c43..97f0c2bbd 100644 --- a/packages/sshnp_gui/pubspec.lock +++ b/packages/sshnp_gui/pubspec.lock @@ -109,10 +109,10 @@ packages: dependency: transitive description: name: at_commons - sha256: "091ca795288910f7d426ab4534e5e0e6e1fae3a12e2c65a578f1244d1f3d67bc" + sha256: a3b5c171c0a7a7cbfd334302df7670f831f00b9b701d8bec9ebbc1765e69f489 url: "https://pub.dev" source: hosted - version: "3.0.55" + version: "3.0.57" at_contact: dependency: "direct main" description: