[PATCH] Fixed port ranges support in the listen directive

Maxim Dounin mdounin at mdounin.ru
Sun Dec 18 23:49:32 UTC 2022


Hello!

On Sun, Dec 18, 2022 at 09:36:55PM +0300, Valentin V. Bartenev wrote:

> # HG changeset patch
> # User Valentin Bartenev <vbart at wbsrv.ru>
> # Date 1671388142 -10800
> #      Sun Dec 18 21:29:02 2022 +0300
> # Node ID 2af1287d2da744335932f6dca345618f7b80d1c1
> # Parent  3108d4d668e4b907868b815f0441d4c893bf4188
> Fixed port ranges support in the listen directive.
> 
> Ports difference must be respected when checking addresses for duplicates,
> otherwise configurations like this are broken:
> 
>   listen 127.0.0.1:6000-6005
> 
> It was broken by 4cc2bfeff46c (nginx 1.23.3).

Thanks for catching this.  Completely forgot we have this 
(mis)feature.

The patch looks good to me, pushed to http://mdounin.ru/hg/nginx.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx-devel mailing list