Skip to content

Commit

Permalink
main.go: add print raw string before obfuscate, update flag usage abo…
Browse files Browse the repository at this point in the history
…ut auto-cert.
  • Loading branch information
For-ACGN committed Dec 18, 2021
1 parent 8947f59 commit 1b0c794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func init() {
flag.StringVar(&cfg.HTTPAddress, "http-addr", ":8080", "http server address")
flag.StringVar(&cfg.LDAPNetwork, "ldap-net", "tcp", "ldap server network")
flag.StringVar(&cfg.LDAPAddress, "ldap-addr", ":3890", "ldap server address")
flag.BoolVar(&cfg.AutoCert, "auto-cert", false, "use ACME to sign certificate")
flag.BoolVar(&cfg.AutoCert, "auto-cert", false, "use ACME client to sign certificate")
flag.BoolVar(&cfg.EnableTLS, "tls-server", false, "enable ldaps and https server")
flag.StringVar(&crt, "tls-cert", "cert.pem", "tls certificate file path")
flag.StringVar(&key, "tls-key", "key.pem", "tls private key file path")
Expand All @@ -53,6 +53,7 @@ func banner() {
func main() {
// output obfuscated string
if obf != "" {
fmt.Println("raw:", obf)
fmt.Println(log4shell.Obfuscate(obf))
return
}
Expand Down

0 comments on commit 1b0c794

Please sign in to comment.