You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmmm, one thing I just thought of is what if OS_HOST is a hostname rather than an IP address (this actually would also mean shared/bin/ufw_allow_requests.sh would need to be tweaked).
We should probably detect this case and try to resolve it (?) before doing the ip route, as:
$ ip route get example.org
Error: any valid prefix is expected rather than "example.org"
So, I'll do like dig +short $OS_HOST first if it's not already an IP address, e.g.:
$ ip route get $(dig +short "example.org") | grep -Po '(?<=src )(\d{1,3}.){4}' | sed "s/ //g"
172.16.0.20
Issue for tracking #559 by @divinehawk.
PR commit staged into development fork for release as mmguero-dev/Malcolm@ef5e672
The text was updated successfully, but these errors were encountered: