Skip to content

Commit

Permalink
handler added
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Jan 6, 2017
1 parent 7fc86a5 commit 8ca4715
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions listeners.go
Expand Up @@ -70,6 +70,12 @@ func handleTCPClient(conn net.Conn, ch *nbc.NonBlockingChan, counter ConnCounter
handleTelnet(time.Now().Unix(), conn)
counter.decrCon()
}
if strings.HasSuffix(handler, "sip") {
log.Printf("New connection from %s to port %d -> glutton:sip\n", addr[0], dp)
counter.incrCon()
handleSIP(conn)
counter.decrCon()
}
if strings.HasSuffix(handler, "default") {
log.Printf("New connection from %s to port %d -> glutton:default\n", addr[0], dp)
counter.incrCon()
Expand Down

0 comments on commit 8ca4715

Please sign in to comment.