projects
/
libradsec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a note about the change of default place to look for radsecproxy.conf.
[libradsec.git]
/
dynsrv.sh
diff --git
a/dynsrv.sh
b/dynsrv.sh
index
1232fc2
..
d0810d6
100755
(executable)
--- a/
dynsrv.sh
+++ b/
dynsrv.sh
@@
-1,5
+1,9
@@
#! /bin/sh
#! /bin/sh
-host=`host -t srv _radsec._tcp.$1|cut -d\ -f8`
+srv=`host -t srv _radsec._tcp.$1`
+# should do exit 1 or something if host command fails
+host=`echo $srv|cut -d\ -f8`
+port=`echo $srv|cut -d\ -f7`
echo "server $1-$host {"
echo " host $host"
echo "server $1-$host {"
echo " host $host"
+echo " port $port"
echo "}"
echo "}"