Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed May 15, 2023
1 parent a3a0cca commit 9ce4dc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion privilege/privileges/ldap/ldap_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (impl *ldapAuthImpl) initializeCAPool() error {
}

func (impl *ldapAuthImpl) connectionFactory() (pools.Resource, error) {
address := net.JoinHostPort(impl.ldapServerHost, strconv.FormatUint(uint64(impl.ldapServerPort)))
address := net.JoinHostPort(impl.ldapServerHost, strconv.FormatUint(uint64(impl.ldapServerPort), 10))

// It's fine to load these two TLS configurations one-by-one (but not guarded by a single lock), because there isn't
// a way to set two variables atomically.
Expand Down
3 changes: 2 additions & 1 deletion util/processinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"net"
"strings"
"sync/atomic"
"time"
Expand Down Expand Up @@ -85,7 +86,7 @@ func (pi *ProcessInfo) ToRowForShow(full bool) []interface{} {
}
var host string
if pi.Port != "" {
host = fmt.Sprintf("%s:%s", pi.Host, pi.Port)
host = net.JoinHostPort(pi.Host, pi.Port)
} else {
host = pi.Host
}
Expand Down

0 comments on commit 9ce4dc5

Please sign in to comment.