Skip to content

Commit 66be2ae

Browse files
committed
main.go: rename flag with-dollar to add-dollar.
1 parent b2cf388 commit 66be2ae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cmd/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
)
1414

1515
var (
16-
config log4shell.Config
17-
certFile string
18-
keyFile string
19-
rawStr string
20-
noToken bool
21-
dollar bool
16+
config log4shell.Config
17+
certFile string
18+
keyFile string
19+
rawStr string
20+
noToken bool
21+
addDollar bool
2222
)
2323

2424
func init() {
@@ -37,7 +37,7 @@ func init() {
3737
flag.StringVar(&keyFile, "tls-key", "key.pem", "tls private key file path")
3838
flag.StringVar(&rawStr, "obf", "", "obfuscate malicious(payload) string")
3939
flag.BoolVar(&noToken, "no-token", false, "not add random token when use obfuscate")
40-
flag.BoolVar(&dollar, "with-dollar", false, "add one dollar to the obfuscated string")
40+
flag.BoolVar(&addDollar, "add-dollar", false, "add one dollar to the obfuscated string")
4141
flag.Parse()
4242
}
4343

@@ -104,7 +104,7 @@ func obfuscate() {
104104
obfuscated string
105105
rawWithToken string
106106
)
107-
if dollar {
107+
if addDollar {
108108
obfuscated, rawWithToken = log4shell.ObfuscateWithDollar(rawStr, !noToken)
109109
} else {
110110
obfuscated, rawWithToken = log4shell.Obfuscate(rawStr, !noToken)

0 commit comments

Comments
 (0)