kiwibnc icon indicating copy to clipboard operation
kiwibnc copied to clipboard

WEBIRC support

Open prawnsalad opened this issue 6 years ago • 2 comments

Some networks would prefer to have the users first connection IP passed to the network so we should add this via WEBIRC

prawnsalad avatar Apr 29 '19 15:04 prawnsalad

Hmm, this'll be interesting to handle. Basically, a new var called LastSeenIP, whenever a client connects we update that user's LastSeenIP with the client's new IP. When we connect to upstream we can use WEBIRC if it's defined in the... config file probably? Maybe? Should regular users be able to enable/disable WEBIRC on each network or will we handle it another way to ensure that the bouncer always uses it when appropriate.

If we're connecting to upstream and haven't received a connection from the user at all yet (or e.g. they're connecting from localhost), should we just give a random IP in WEBIRC, or something different. I wonder how/whether ZNC handles this, will take a look.

DanielOaks avatar Apr 29 '19 15:04 DanielOaks

Map of hostname<->webirc password, just define it in config.

DanielOaks avatar May 13 '19 13:05 DanielOaks