mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 11:18:30 +00:00
Update redbean to show Lua stack traces (#237)
- Update redbean to include stack trace in Lua errors - Extend Lua in redbean to include stack trace in all logged errors - Update default error page in redbean with error details (when allowed) - Prepend `@` to Lua paths in redbean to recognize them as paths in error messages - Replace GetClientAddr with GetRemoteAddr to avoid backtrace leak in proxy scenarios - Fix typo in GetRemoteAddr documentation
This commit is contained in:
parent
9454788223
commit
a2e443edd7
2 changed files with 76 additions and 34 deletions
|
@ -584,7 +584,7 @@ FUNCTIONS
|
|||
Returns client ip4 address and port, e.g. 0x01020304,31337 would
|
||||
represent 1.2.3.4:31337. This is the same as GetClientAddr except
|
||||
it will use the ip:port from the X-Forwarded-For header, only if
|
||||
it IsPrivateIp or IsPrivateIp.
|
||||
IsPrivateIp or IsLoopbackIp return true.
|
||||
|
||||
GetClientAddr() → ip:uint32,port:uint16
|
||||
Returns client socket ip4 address and port, e.g. 0x01020304,31337
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue