Skip to content

Commit 178c719

Browse files
committed
rename module github.com/For-ACGN/log4j2-exp, change ldap server default port.
1 parent 5155b44 commit 178c719

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99
"os/signal"
1010

11-
"github.com/For-ACGN/log4j2"
11+
"github.com/For-ACGN/log4j2-exp"
1212
)
1313

1414
var (
@@ -26,7 +26,7 @@ func init() {
2626
flag.StringVar(&cfg.HTTPNetwork, "http-net", "tcp", "http server network")
2727
flag.StringVar(&cfg.HTTPAddress, "http-addr", ":8080", "http server address")
2828
flag.StringVar(&cfg.LDAPNetwork, "ldap-net", "tcp", "ldap server network")
29-
flag.StringVar(&cfg.LDAPAddress, "ldap-addr", ":389", "ldap server address")
29+
flag.StringVar(&cfg.LDAPAddress, "ldap-addr", ":3890", "ldap server address")
3030
flag.BoolVar(&cfg.EnableTLS, "tls-server", false, "enable ldaps and https server")
3131
flag.StringVar(&crt, "tls-cert", "cert.pem", "tls certificate file path")
3232
flag.StringVar(&key, "tls-key", "key.pem", "tls private key file path")

go.mod

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/For-ACGN/log4j2
1+
module github.com/For-ACGN/log4j2-exp
22

33
go 1.17
44

@@ -8,10 +8,13 @@ require (
88
github.com/stretchr/testify v1.7.0
99

1010
github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3
11+
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
1112
)
1213

1314
require (
1415
github.com/davecgh/go-spew v1.1.0 // indirect
1516
github.com/pmezard/go-difflib v1.0.0 // indirect
17+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
18+
golang.org/x/text v0.3.6 // indirect
1619
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
1720
)

go.sum

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
1111
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
1212
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
1313
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
14+
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 h1:0es+/5331RGQPcXlMfP+WrnIIS6dNnNRe0WB02W0F4M=
15+
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
16+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 h1:CIJ76btIcR3eFI5EgSo6k1qKw9KJexJuRLI9G7Hp5wE=
17+
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
18+
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
19+
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
20+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
1421
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
1522
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
1623
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=

log4j2.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ type Config struct {
2424

2525
HTTPNetwork string
2626
HTTPAddress string
27-
2827
LDAPNetwork string
2928
LDAPAddress string
3029

log4j2_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func testGenerateConfig() *Config {
2323
HTTPNetwork: "tcp",
2424
HTTPAddress: "127.0.0.1:8088",
2525
LDAPNetwork: "tcp",
26-
LDAPAddress: "127.0.0.1:389",
26+
LDAPAddress: "127.0.0.1:3890",
2727
}
2828
}
2929

0 commit comments

Comments
 (0)