diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 16:18:15 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-22 16:18:15 +0530 |
commit | 2fe14eca63e9d3e907c7b725407c146a82cc129f (patch) | |
tree | 9373bfe5281d88f549659d42e19624a23848be1c /main.go | |
parent | d58151dbb07a5d5dd7eaf6fc9f12566898823a46 (diff) | |
download | legit-2fe14eca63e9d3e907c7b725407c146a82cc129f.tar.gz legit-2fe14eca63e9d3e907c7b725407c146a82cc129f.tar.bz2 legit-2fe14eca63e9d3e907c7b725407c146a82cc129f.zip |
unveil: reorder
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,6 +20,10 @@ func main() { log.Fatal(err) } + if err := Unveil("/usr/local/bin/git", "rx"); err != nil { + log.Fatalf("unveil: %s", err) + } + if err := UnveilPaths([]string{ c.Dirs.Static, c.Repo.ScanPath, @@ -29,10 +33,6 @@ func main() { log.Fatalf("unveil: %s", err) } - if err := Unveil("/usr/local/bin/git", "rx"); err != nil { - log.Fatalf("unveil: %s", err) - } - mux := routes.Handlers(c) addr := fmt.Sprintf("%s:%d", c.Server.Host, c.Server.Port) log.Println("starting server on", addr) |