forked from rosa/hakurei
internal/rosa: access backing storage through fs
This is more versatile than hardcoding the os.Root implementation. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
+1
-1
@@ -522,7 +522,7 @@ func main() {
|
||||
if base, err := os.OpenRoot(cm.base); err != nil {
|
||||
return err
|
||||
} else {
|
||||
h = rosa.NewMirror(msg, base, key)
|
||||
h = rosa.NewMirror(msg, base.FS(), key)
|
||||
}
|
||||
|
||||
server := http.Server{Addr: args[0], Handler: h}
|
||||
|
||||
Reference in New Issue
Block a user