Skip to content

Commit

Permalink
Added some double quotes as suggested by shellcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmdev committed Nov 23, 2018
1 parent 3038950 commit 60bf9e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ddos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ undrop_rate_list()

ip_to_hex()
{
printf '%02x' $(echo "$1" | sed "s/\\./ /g")
printf '%02x' "$(echo "$1" | sed "s/\\./ /g")"
}

# Active connections to server.
Expand Down Expand Up @@ -1197,7 +1197,7 @@ start_bandwidth_control()
# Load right amount of needed virtual interfaces
if_count="$(echo "$BANDWIDTH_INTERFACES" | wc -w)"
rmmod ifb 2>/dev/null
modprobe ifb numifbs=$if_count
modprobe ifb numifbs="$if_count"

# Activate all ifb network interfaces.
for index in $(seq 0 $((if_count-1)) | xargs); do
Expand Down

0 comments on commit 60bf9e4

Please sign in to comment.