Add method ts::getkey

This commit is contained in:
df 2020-10-19 12:41:06 +00:00
parent 3009b75e01
commit 6ed1cd14ab
1 changed files with 2 additions and 2 deletions

View File

@ -837,12 +837,12 @@ ts method getkey {mode} {
set rfile [file rootname $file]
# the active key
set keys = {}
set keys {}
set key [string range [system nugget cryptokey -key] 0 31]
if {$key ne ""} {
lappend keys $key
}
if { mode ne "dlna" } {
if { $mode ne "dlna" } {
# also try other keys, such as the native key
if {![catch {set fd [open "/mod/boot/cryptokey"]}]} {
set bytes [$fd read 16]