Compile with new remoteHost
This commit is contained in:
parent
06db8b9508
commit
6c3c312a48
@ -258,7 +258,9 @@ toWaiApp' y key' segments env = do
|
|||||||
now <- liftIO getCurrentTime
|
now <- liftIO getCurrentTime
|
||||||
let getExpires m = fromIntegral (m * 60) `addUTCTime` now
|
let getExpires m = fromIntegral (m * 60) `addUTCTime` now
|
||||||
let exp' = getExpires $ clientSessionDuration y
|
let exp' = getExpires $ clientSessionDuration y
|
||||||
let host = if sessionIpAddress y then W.remoteHost env else ""
|
-- FIXME will show remoteHost give the answer I need? will it include port
|
||||||
|
-- information that changes on each request?
|
||||||
|
let host = if sessionIpAddress y then B.pack (show (W.remoteHost env)) else ""
|
||||||
let session' =
|
let session' =
|
||||||
case key' of
|
case key' of
|
||||||
Nothing -> []
|
Nothing -> []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user