openssh-portable icon indicating copy to clipboard operation
openssh-portable copied to clipboard

Add support for match patterns in LocalPort conditional blocks

Open manuelm opened this issue 1 year ago • 3 comments

This adds support for match patterns in LocalPort conditional blocks. e.g. this now works:

Match LocalPort 22*
  SomeKeyword ...

 Match LocalPort !22,*
  SomeKeyword ...

manuelm avatar Nov 06 '24 09:11 manuelm

Looks reasonable to me. @daztucker any objections to my committing?

djmdjm avatar Nov 28 '24 16:11 djmdjm

Code looks OK to me, although I think it needs a regression test to go with it.

daztucker avatar Nov 28 '24 22:11 daztucker

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.

manuelm avatar Nov 29 '24 13:11 manuelm