[tor-commits] [sbws/master] fix:scanner: Move as_entry/as_exit into one function