mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
17ba1be16c
commit
6af2de6de9
6 changed files with 463 additions and 51 deletions
|
@ -42,6 +42,7 @@ type Acceptor struct {
|
|||
}
|
||||
|
||||
type HandlerContext struct {
|
||||
service string
|
||||
mod *ZeroGod
|
||||
client net.Conn
|
||||
srvHost string
|
||||
|
@ -100,8 +101,9 @@ func (a *Acceptor) Start() (err error) {
|
|||
a.mod.Error("%v", err)
|
||||
}
|
||||
} else {
|
||||
a.mod.Info("accepted connection for service %s (port %d): %v", tui.Green(a.service), a.port, conn.RemoteAddr())
|
||||
a.mod.Debug("accepted connection for service %s (port %d): %v", tui.Green(a.service), a.port, conn.RemoteAddr())
|
||||
go a.handler.Handle(&HandlerContext{
|
||||
service: a.service,
|
||||
mod: a.mod,
|
||||
client: conn,
|
||||
srvHost: a.srvHost,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue