Preparing search index...
The search index is not available
Node CrowdSec Client
Node CrowdSec Client
crowdsec-client-scenarios
XForwardedForChecker
Class XForwardedForChecker
Hierarchy
CheckerScenario
XForwardedForChecker
Index
Constructors
constructor
Properties
announce
ToLAPI
ip
Object
Cache
scenario
Name
scenario
Version
Accessors
ip
Object
Cache
name
Methods
_check
check
enrich
extract
Ip
get
Address
Object
With
Cache
Constructors
constructor
new XForwarded
For
Checker
(
options
?
)
:
XForwardedForChecker
Parameters
Optional
options
:
IScenarioOptions
Returns
XForwardedForChecker
Properties
Readonly
announce
ToLAPI
announce
ToLAPI
= true
announce current scenario to LAPI
Static
ip
Object
Cache
ip
Object
Cache
:
LRUCache
<
string
,
AddressObject
,
unknown
>
Static
Readonly
scenario
Name
scenario
Name
:
"thib3113/x-forwarded-for"
= 'thib3113/x-forwarded-for'
Static
Readonly
scenario
Version
scenario
Version
:
"0.0.1"
= '0.0.1'
Accessors
Protected
ip
Object
Cache
get
ipObjectCache
(
)
:
LRUCache
<
string
,
AddressObject
,
unknown
>
Returns
LRUCache
<
string
,
AddressObject
,
unknown
>
name
get
name
(
)
:
string
name of the scenario
Returns
string
Methods
Protected
_check
_check
(
ip
,
req
)
:
undefined
|
APITypes
.
Alert
|
APITypes
.
Alert
[]
Parameters
ip
:
AddressObject
req
:
IncomingMessage
Returns
undefined
|
APITypes
.
Alert
|
APITypes
.
Alert
[]
check
check
(
ip
,
req
)
:
undefined
|
APITypes
.
Alert
|
APITypes
.
Alert
[]
Parameters
ip
:
AddressObject
req
:
IncomingMessage
Returns
undefined
|
APITypes
.
Alert
|
APITypes
.
Alert
[]
enrich
enrich
(
alert
,
req
)
:
undefined
|
APITypes
.
Alert
Parameters
alert
:
APITypes
.
Alert
req
:
IncomingMessage
Returns
undefined
|
APITypes
.
Alert
extract
Ip
extract
Ip
(
req
)
:
undefined
|
IIpExtractionResult
Parameters
req
:
IncomingMessage
Returns
undefined
|
IIpExtractionResult
Protected
get
Address
Object
With
Cache
get
Address
Object
With
Cache
(
address
?
)
:
AddressObject
Parameters
Optional
address
:
string
Returns
AddressObject
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
announce
ToLAPI
ip
Object
Cache
scenario
Name
scenario
Version
Accessors
ip
Object
Cache
name
Methods
_check
check
enrich
extract
Ip
get
Address
Object
With
Cache
Node CrowdSec Client
Loading...
announce current scenario to LAPI