Skip to content

Commit

Permalink
Merge pull request #7 from grische/check-for-config-server
Browse files Browse the repository at this point in the history
ffbs-mesh-vpn-parker: check uci for config_server
  • Loading branch information
SmithChart authored Nov 27, 2024
2 parents 3cefe3c + 77a8e70 commit fd33d3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ffbs-mesh-vpn-parker/files/usr/sbin/nodeconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ while true; do
continue;
fi

config_server=$(uci get parker.nodeconfig.config_server)
if ! config_server=$(uci get parker.nodeconfig.config_server); then
$LOGGER unable to get config_server from uci
exit 1
fi

LD_PRELOAD=libpacketmark.so wget "http://${config_server}/config?pubkey=${pubkey}&nonce=${nonce}&v6mtu=${v6mtu}&version=${version}" -O "${tmpdir}response" -q
RET=$?
if [ $RET -gt 0 ]; then
Expand Down

0 comments on commit fd33d3d

Please sign in to comment.