[tor-commits] [snowflake/master] Factor out a function to extract the client IP address.