SocksPolicy and DirPolicy ignore port specifications, contrary to documentation
The documentation for SocksPolicy and DirPolicy both say "policies have the same form as exit policies", but looking at the code at https://gitweb.torproject.org/tor.git/blob/4348c52a353a5242ddefc5c866ffb58e98443c7e:/src/or/policies.c#l344 it appears both only consider the address, not the port number. The documentation should be updated to reflect this.
(It seems unlikely to me that limiting the source ports allowed to connect to these listeners is actually a feature anyone wants, but maybe it is?)