Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16444 from BonnierNews/bug/port-list-when-proxy-p…
…rotocol Automatic merge from submit-queue (batch tested with PRs 16454, 16444, 16522) Router: Do not include accept-proxy in port list when using proxy protocol and syn eater When enabling both proxy protocol (ROUTER_USE_PROXY_PROTOCOL) and DROP_SYN_DURING_RESTART, the ports variable in reload-haproxy is set to: ``` 80 accept-proxy,443 accept-proxy ``` This makes the reload script fail with: ``` Bad argument `accept-proxy,445' Try `iptables -h' or 'iptables --help' for more information. ``` This PR fixes that by adding `-o` to grep, which makes grep only return the match from the reqex
- Loading branch information