mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
vulsrepo runs a small custom web server presenting a web gui for the vulnerabilty reports created by security/vuls.
12 lines
410 B
Go
12 lines
410 B
Go
--- main.go.orig 2021-12-20 04:40:08 UTC
|
|
+++ main.go
|
|
@@ -134,8 +134,7 @@ func loadConfig() {
|
|
}
|
|
|
|
func loadConfig() {
|
|
- fpath, _ := (os.Executable())
|
|
- _, err := toml.DecodeFile(filepath.Dir(fpath)+"/vulsrepo-config.toml", &config)
|
|
+ _, err := toml.DecodeFile("%%PREFIX%%/etc/vulsrepo-config.toml", &config)
|
|
if err != nil {
|
|
_, err := toml.DecodeFile("./vulsrepo-config.toml", &config)
|
|
if err != nil {
|