forked from External/ergo
fix client auth for no password
All clients are authorized if the server lacks a password.
This commit is contained in:
parent
4bcd42ff34
commit
f56db354ee
2 changed files with 2 additions and 1 deletions
|
|
@ -39,6 +39,7 @@ func NewClient(server *Server, conn net.Conn) *Client {
|
|||
now := time.Now()
|
||||
client := &Client{
|
||||
atime: now,
|
||||
authorized: server.password == nil,
|
||||
capState: CapNone,
|
||||
capabilities: make(CapabilitySet),
|
||||
channels: make(ChannelSet),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue