Closed sahmadiut closed 1 week ago
Adding to the existing port mapping improvements, this update introduces support for two additional formats and enhances error handling:
New supported formats:
Key improvements:
Implemented regex-based parsing for more robust and flexible port mapping. Enhanced error management for invalid port mappings, providing better feedback and stability.
Unfortunately, I haven't had a chance to read your PR yet. But I think that using regex reduces the readability of the code. Also, in my opinion, the format of a port range is better to be like this: 1001-1003. What we also see in HAProxy.
Thank you for your feedback! I appreciate your point about readability
This Pull Request introduces support for handling multiple port mapping formats, providing greater flexibility in port configurations:
These updates allow for more dynamic and flexible configuration of ports, making it easier to handle different use cases.