Changeset 383 in code


Ignore:
Timestamp:
Aug 11, 2020, 8:34:38 AM (5 years ago)
Author:
contact
Message:

Add ircConn.LocalAddr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/conn.go

    r347 r383  
    2222        SetWriteDeadline(time.Time) error
    2323        RemoteAddr() net.Addr
     24        LocalAddr() net.Addr
    2425}
    2526
     
    8889func (wic websocketIRCConn) RemoteAddr() net.Addr {
    8990        return websocketAddr(wic.remoteAddr)
     91}
     92
     93func (wic websocketIRCConn) LocalAddr() net.Addr {
     94        // Behind a reverse HTTP proxy, we don't have access to the real listening
     95        // address
     96        return websocketAddr("")
    9097}
    9198
Note: See TracChangeset for help on using the changeset viewer.