[SR-Users] Question on pike_check_ip(ipaddr)

Fred Posner fred at palner.com
Fri May 13 22:44:59 CEST 2022


On 5/13/22 16:38, Joel Serrano wrote:
> I was wondering if pike_check_ip(ipaddr) needs strictly an IP as 
> parameter or can it be a string?

pike_check_ip is when you want to use an IP other than the source ip...

You can always use an htable to store the ip's of your high volume 
clients...

something like:

if((src_ip!=myself) && ($sht(highvolcust=>$si) == $null)) {
	if (!pike_check_req()) {
		...
	}
}

--fred



More information about the sr-users mailing list