mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 09:48:13 -07:00
async hostname lookups
This commit is contained in:
+2
-2
@@ -33,14 +33,14 @@ type Client struct {
|
||||
username string
|
||||
}
|
||||
|
||||
func NewClient(server *Server, conn net.Conn) *Client {
|
||||
func NewClient(server *Server, conn net.Conn, hostname string) *Client {
|
||||
now := time.Now()
|
||||
client := &Client{
|
||||
atime: now,
|
||||
channels: make(ChannelSet),
|
||||
ctime: now,
|
||||
flags: make(map[UserMode]bool),
|
||||
hostname: AddrLookupHostname(conn.RemoteAddr()),
|
||||
hostname: hostname,
|
||||
phase: server.InitPhase(),
|
||||
server: server,
|
||||
socket: NewSocket(conn),
|
||||
|
||||
Reference in New Issue
Block a user