From 75917b9f7c100d73dd815179bfae6999d4bbd7cc Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 19 Jun 2021 16:21:39 +0200 Subject: [PATCH] better fallback --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index f680597e..615f3ff5 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -115,7 +115,7 @@ class HttpCli(object): try: self.ip = vs[n].strip() except: - self.ip = vs[-1].strip() + self.ip = vs[0].strip() self.log("rproxy={} oob x-fwd {}".format(self.args.rproxy, v), c=3) self.log_src = self.conn.set_rproxy(self.ip)