Skip to content

Commit

Permalink
hide passwd (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxtof committed May 22, 2022
1 parent c15d100 commit 910822a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,9 @@ func initConfig() {

useTLS = viper.GetBool("mikrotik_tls")
useIPV6 = viper.GetBool("mikrotik_ipv6")
log.Printf("Using config: %+v", viper.AllSettings())

all := viper.AllSettings()
delete(all, "mikrotik_pass")

log.Printf("Using config: %+v", all)
}

0 comments on commit 910822a

Please sign in to comment.