diff --git a/core/src/fnc/session.rs b/core/src/fnc/session.rs index a91e29ba4f62..b847604d1b15 100644 --- a/core/src/fnc/session.rs +++ b/core/src/fnc/session.rs @@ -25,6 +25,7 @@ pub fn id(ctx: &Context, _: ()) -> Result { pub fn sid(ctx: &Context, _: ()) -> Result { ctx.value("session").unwrap_or(&Value::None).pick(SID.as_ref()).ok() } + pub fn ip(ctx: &Context, _: ()) -> Result { ctx.value("session").unwrap_or(&Value::None).pick(IP.as_ref()).ok() }