Skip to content

Commit 1b2d398

Browse files
committed
reset x-forwarded-for before next req;
assume the following stack: cpp <- rproxyA <- rproxyB <- WAN if A also accepts WAN requests, and A muxes both B and WAN onto a single connection to cpp, then WAN requests may get tagged with the IP-address of the most recent B request aside from the confusing logs, this could break unpost on servers with shared accounts
1 parent ed908b9 commit 1b2d398

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

copyparty/httpconn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,3 +224,6 @@ def run(self) -> None:
224224
if self.u2idx:
225225
self.hsrv.put_u2idx(str(self.addr), self.u2idx)
226226
self.u2idx = None
227+
228+
if self.rproxy:
229+
self.set_rproxy()

0 commit comments

Comments
 (0)