Add port support to NoProxy parser
Brought to you by:
mavey
Sometime it is required to completely bypass the parent proxy for certain ports.
For example, my company doesn't allow SSH through proxy while allowing it directly.
At the same time all other traffic must go through proxy.
Currently, there is no way to specify that in Cntlm configuration.
Since fnmatch() is used to check if the host matches a NoProxy pattern, it is easy to add also port checking so that patterns like "1.2.3.4:22" or ":22" or "somehost:33" would work.
Attached is the proposed patch.