change which proxy as reported as being failing
commitcc8ca7c48675e0835ae887c97872c81b1824af03
authorrofl0r <retnyg@gmx.net>
Thu, 3 Jan 2019 15:49:07 +0000 (3 15:49 +0000)
committerrofl0r <retnyg@gmx.net>
Thu, 3 Jan 2019 15:49:07 +0000 (3 15:49 +0000)
tree3fde6d5438c7a829108f971dc519bf45055497d5
parent43af43ec7d5730dc4a6e31b36385a9c623b40241
change which proxy as reported as being failing

with the previous logic, if proxies were being used and connection
to the first failed, 0 was reported, but 0 was also reported if the
connection between the first and the second failed. -1 was reported
if no proxies were used at all.

now always the number of the proxy to which the connection fails
is reported, and -1 if the last hop (i.e. the connection to the target)
failed.
so if the connection between proxy 0 and 1 fails, 1 is reported as
failing. this allows to accurately remove dead proxies from a chain.
rocksock.c