mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 01:40:28 +00:00
Replace GetClientAddr with GetRemoteAddr to avoid backtrace leak in proxy scenarios
This commit is contained in:
parent
5e87b05e02
commit
53eade50ca
1 changed files with 1 additions and 1 deletions
|
@ -3173,7 +3173,7 @@ static char *GetLuaResponse(void) {
|
|||
static bool IsLoopbackClient() {
|
||||
uint32_t ip;
|
||||
uint16_t port;
|
||||
GetClientAddr(&ip, &port);
|
||||
GetRemoteAddr(&ip, &port);
|
||||
return IsLoopbackIp(ip);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue