Node CrowdSec Client
Preparing search index...
crowdsec-client-scenarios
XForwardedForChecker
Class XForwardedForChecker
Hierarchy
CheckerScenario
XForwardedForChecker
Index
Constructors
constructor
Properties
announce
To
LAPI
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
XForwardedForChecker
(
options
?:
IScenarioOptions
)
:
XForwardedForChecker
Parameters
Optional
options
:
IScenarioOptions
Returns
XForwardedForChecker
Properties
Readonly
announce
To
LAPI
announceToLAPI
:
true
announce current scenario to LAPI
Static
ip
Object
Cache
ipObjectCache
:
LRUCache
<
string
,
AddressObject
,
unknown
>
Static
Readonly
scenario
Name
scenarioName
:
"thib3113/x-forwarded-for"
= 'thib3113/x-forwarded-for'
Static
Readonly
scenario
Version
scenarioVersion
:
"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
:
AddressObject
,
req
:
IncomingMessage
,
)
:
APITypes
.
Alert
|
APITypes
.
Alert
[]
|
undefined
Parameters
ip
:
AddressObject
req
:
IncomingMessage
Returns
APITypes
.
Alert
|
APITypes
.
Alert
[]
|
undefined
check
check
(
ip
:
AddressObject
,
req
:
IncomingMessage
,
)
:
APITypes
.
Alert
|
APITypes
.
Alert
[]
|
undefined
Parameters
ip
:
AddressObject
req
:
IncomingMessage
Returns
APITypes
.
Alert
|
APITypes
.
Alert
[]
|
undefined
enrich
enrich
(
alert
:
APITypes
.
Alert
,
req
:
IncomingMessage
)
:
APITypes
.
Alert
|
undefined
Parameters
alert
:
APITypes
.
Alert
req
:
IncomingMessage
Returns
APITypes
.
Alert
|
undefined
extract
Ip
extractIp
(
req
:
IncomingMessage
)
:
IIpExtractionResult
|
undefined
Parameters
req
:
IncomingMessage
Returns
IIpExtractionResult
|
undefined
Protected
get
Address
Object
With
Cache
getAddressObjectWithCache
(
address
?:
string
)
:
AddressObject
Parameters
Optional
address
:
string
Returns
AddressObject
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
announce
To
LAPI
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