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:
Paul Kulchenko 2021-08-11 23:27:39 -07:00 committed by GitHub
parent 9454788223
commit a2e443edd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 76 additions and 34 deletions

View file

@ -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