Skip to content

Commit

Permalink
[registration] Send mac_address parameter
Browse files Browse the repository at this point in the history
The "mac_address" param is needed from
django_netjsonconfig 0.4 onwards
  • Loading branch information
nemesifier committed Sep 15, 2016
1 parent 163b5ab commit b09a497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp-config/files/openwisp.agent
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ register() {
hostname="$macaddr"
fi
local backend="netjsonconfig.OpenWrt"
local params="secret=$SHARED_SECRET&name=$hostname&backend=$backend"
local params="secret=$SHARED_SECRET&name=$hostname&backend=$backend&mac_address=$macaddr"
# generate key from macaddress + shared secret
if [ "$CONSISTENT_KEY" == "1" ]; then
local consistent_key=$(echo -n "$macaddr+$SHARED_SECRET" | md5sum | awk '{print $1}')
Expand Down

0 comments on commit b09a497

Please sign in to comment.