Skip to content

Commit

Permalink
fix: Revert changes to SSHNPImpl for cacheability of the `username.$d…
Browse files Browse the repository at this point in the history
…evice` and `device_info.$device` keys
  • Loading branch information
gkc committed Oct 25, 2023
1 parent 368bd2a commit cd76e09
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/noports_core/lib/src/sshnpd/sshnpd_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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;

Expand Down
7 changes: 3 additions & 4 deletions packages/sshnoports/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/sshnp_gui/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd76e09

Please sign in to comment.