Azure / WALinuxAgent

Microsoft Azure Linux Guest Agent
http://azure.microsoft.com/
Apache License 2.0
543 stars 372 forks source link

Update IS_ONLINE when trying socket connection [Agent Persist Firewall test] #3247

Closed narrieta closed 1 month ago

narrieta commented 1 month ago

When we try a socket connection to verify network connectivity, we need to update IS_ONLINE.

Also, in some distros, such as Debian 10, iptables is not in the PATH for non-root users, so "command -v" was not finding it. Using "sudo which" instead.