diff --git a/create_ap b/create_ap index 6b3b5ca..f23d444 100755 --- a/create_ap +++ b/create_ap @@ -869,7 +869,7 @@ print_client() { if [[ -f $CONFDIR/dnsmasq.leases ]]; then line=$(grep " $mac " $CONFDIR/dnsmasq.leases | tail -n 1) ipaddr=$(echo $line | cut -d' ' -f3) - hostname=$(echo $line | cut -d' ' -f4) + hostname=$(echo "$line" | cut -d' ' -f4) fi [[ -z "$ipaddr" ]] && ipaddr="*"