[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue banner, IP of clients


On Monday, 23 March 2020 20:02:38 CET Alexander Grotewohl wrote:
> Hello everyone,
> 
> I have a couple hopefully quick questions that I've been scratching my head
> on.
> 
> A) I haven't been able to find a way to send an "issue banner" to a client
> when acting as a server. Is there a function or a variable to set
> somewhere?

This is done automatically by the server once a client connects. It is part of 
the Key Exchange.

> B) I can retrieve the client IP from the socket fd. Is there another
> API-like place this IP is stored that I can use for
> logging/blacklisting/etc?

getpeername() ?


Cheers!


-- 
Andreas Schneider                 asn@xxxxxxxxxxxxxx
GPG-ID:     8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D



Follow-Ups:
Re: Issue banner, IP of clientsAlexander Grotewohl <alex@xxxxxxxxxxx>
References:
Issue banner, IP of clientsAlexander Grotewohl <alex@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org