openssh-portable
openssh-portable copied to clipboard
Add support for match patterns in LocalPort conditional blocks
This adds support for match patterns in LocalPort conditional blocks. e.g. this now works:
Match LocalPort 22*
SomeKeyword ...
Match LocalPort !22,*
SomeKeyword ...
Looks reasonable to me. @daztucker any objections to my committing?
Code looks OK to me, although I think it needs a regression test to go with it.
Code looks OK to me, although I think it needs a regression test to go with it.
Sure, I'll add some to regress/addrmatch.sh. I've overlooked this somehow and thought there are no tests for sshd Match-blocks.