node-fff-hoods: Make keyserverurl configurable
Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
parent
20ecca34c0
commit
2544399536
@ -2,4 +2,8 @@
|
||||
|
||||
ln -s "$hoodfilewww" /www/hood/keyxchangev2data
|
||||
|
||||
uci set fff.keyserver='hood'
|
||||
uci set fff.keyserver.url='http://keyserver.freifunk-franken.de/v2'
|
||||
uci commit fff
|
||||
|
||||
exit 0
|
||||
|
@ -99,7 +99,7 @@ getKeyserverHoodfile() {
|
||||
|
||||
echo "Getting hoodfile from Keyserver"
|
||||
|
||||
if /bin/busybox wget -T15 -O "$file" "http://keyserver.freifunk-franken.de/v2/?lat=$lat&long=$long"; then
|
||||
if /bin/busybox wget -T15 -O "$file" "$(uci -q get fff.keyserver.url || echo "http://keyserver.freifunk-franken.de/v2")/?lat=$lat&long=$long"; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
|
Loading…
Reference in New Issue
Block a user