diff options
author | felics | 2018-03-26 16:16:30 +0200 |
---|---|---|
committer | felics | 2018-03-26 16:16:30 +0200 |
commit | 060c36fa206a053cfaf020d3e1a88da01b7c17d0 (patch) | |
tree | d704eead5bf584ed30c0f2197cb7466a378004dc /adhocspot.sh | |
parent | 925779445a788568eda8ec8400b409a2a7d694c2 (diff) | |
download | aur-060c36fa206a053cfaf020d3e1a88da01b7c17d0.tar.gz |
Fixed an error where local loopback interface falsely get NAT configured in default settings.
Diffstat (limited to 'adhocspot.sh')
-rwxr-xr-x | adhocspot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adhocspot.sh b/adhocspot.sh index 86e1b92abd9f..7e57564a079b 100755 --- a/adhocspot.sh +++ b/adhocspot.sh @@ -205,7 +205,7 @@ get_nat_interfaces() { # Returns a newline-separated list of interfaces to add masquerading to their postrouting queue. Examines $_out_iface_all: If $_out_iface_all is true, returns all available interfaces whose name does not start with 'lo'. Otherwise, returns ${_out_iface}. _nat_ifaces="" if "${_out_iface_all}"; then - _nat_ifaces="$(ifconfig -a | grep -E '^[^[[:space:]]]*' | awk '{print $1}' | sed 's|\:$||g')" + _nat_ifaces="$(ifconfig -a | grep -E '^[^[[:space:]]]*' | awk '{print $1}' | sed 's|\:$||g' | grep -vE '^lo')" else _nat_ifaces="${_out_iface}" fi |