Check-in [cb291d298a]
Overview
SHA1:cb291d298aac995c817ed6b9572c14e3f38e32e0
Date: 2016-09-15 03:39:44
User: rkeene
Comment:Updated to use the IP address for users instead of their "hostname" as their hostname is often wrong, as well as log new connections
Timelines: family | ancestors | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-09-15
03:39
[cb291d298a] Leaf: Updated to use the IP address for users instead of their "hostname" as their hostname is often wrong, as well as log new connections (user: rkeene, tags: trunk)
03:18
[c19d78c4de] Fixed missing update (user: rkeene, tags: trunk)
Changes

Modified ircd.tcl from [9c15122980] to [e7c9435743].

    43     43   proc debug msg {
    44     44       if {[config debugmessages]} {
    45     45   	puts $msg
    46     46       }
    47     47   }
    48     48   
    49     49   proc handleNewConnection {fd host port} {
           50  +    debug "($fd) New connection from $host ;; peer= [fconfigure $fd -peername]"
           51  +
    50     52       clientState $fd UNREGISTERED
    51     53       clientHost $fd [lindex [fconfigure $fd -peername] 1]
           54  +    clientHost $fd $host
    52     55       clientPort $fd $port
    53     56       clientNick $fd {}
    54     57       clientUser $fd {}
    55     58       clientVirtualHost $fd {}
    56     59       clientRealName $fd {}
    57     60       fconfigure $fd -blocking 0
    58     61       fileevent $fd readable [list handleClientInputWrapper $fd]