[tor-bugs] #31834 [Circumvention]: Make obfs4 Docker image more usable
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Feb 13 11:47:53 UTC 2020
#31834: Make obfs4 Docker image more usable
-------------------------------+-------------------------------
Reporter: phw | Owner: phw
Type: defect | Status: closed
Priority: Medium | Milestone:
Component: Circumvention | Version:
Severity: Normal | Resolution: fixed
Keywords: docker, s30-o24a2 | Actual Points: 1.1
Parent ID: #31281 | Points: 1
Reviewer: cohosh | Sponsor: Sponsor30-can
-------------------------------+-------------------------------
Comment (by thymbahutymba):
Wrong IP in case of dynamic ip which may change.
I'm not good with bash and so I don't know if something better could be
proposed but this should solve the problem:
{{{
addr=$(grep 'Our IP Address has changed from' "$TOR_LOG" | \
sed 's/.* \([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\);
.*/\1/' | \
tail -1)
if [ -z "$addr" ]; then
addr=$(grep 'Guessed our IP address' "$TOR_LOG" | \
sed 's/.*
\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\) .*/\1/' | \
tail -1)
fi
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/31834#comment:25>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list