diff options
author | Mike Crute <mike@crute.us> | 2023-07-31 15:46:25 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2023-07-31 15:46:25 -0700 |
commit | d7d77fd1c9035ec6356abb57a5486f0a13029628 (patch) | |
tree | cc9528787aa42171fee791bb69148c346ae4b2d9 /main.go | |
parent | cfbb1efaea31c498433db43cb507f54545c724f5 (diff) | |
download | websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.bz2 websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.tar.xz websocket_proxy-d7d77fd1c9035ec6356abb57a5486f0a13029628.zip |
Make docker build work
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -4,6 +4,7 @@ package main | |||
4 | 4 | ||
5 | import ( | 5 | import ( |
6 | "embed" | 6 | "embed" |
7 | "io/fs" | ||
7 | "log" | 8 | "log" |
8 | 9 | ||
9 | "code.crute.us/mcrute/ssh-proxy/app" | 10 | "code.crute.us/mcrute/ssh-proxy/app" |
@@ -35,7 +36,12 @@ func main() { | |||
35 | } | 36 | } |
36 | cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") | 37 | cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") |
37 | 38 | ||
38 | web.Register(rootCmd, embeddedTemplates, embeddedClients, appVersion) | 39 | templates, err := fs.Sub(embeddedTemplates, "templates") |
40 | if err != nil { | ||
41 | log.Fatalf("Error building sub-fs of embeded fs") | ||
42 | } | ||
43 | |||
44 | web.Register(rootCmd, templates, embeddedClients, appVersion) | ||
39 | client.Register(rootCmd) | 45 | client.Register(rootCmd) |
40 | register.Register(rootCmd) | 46 | register.Register(rootCmd) |
41 | 47 | ||