Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
sshd: fix startWhenNeeded and listenAddresses combination for ipv6 #56340
Motivation for this change
systemd.socket ListenSteam option requires ipv6 address to be enclosed
In this implementation, I just check for colon in IP address string, which is not perfect but I'm not sure we need a full ipv6 regex for this purpose either.