Skip to content

Commit

Permalink
fix custom MIB not correctly loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalaydrus committed Jul 12, 2023
1 parent 775d385 commit 0a1052a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import (
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"os"
"path"
)

const defaultConfigPath = "/etc/trap2json/config.yml"
const defaultConfigPath = "/etc/trap2json"

func main() {
configPath := flag.String(
"config",
defaultConfigPath,
path.Join(defaultConfigPath, "config.yml"),
"path to config file",
)
snmptrapdConfPath := flag.String(
Expand Down

0 comments on commit 0a1052a

Please sign in to comment.