summaryrefslogtreecommitdiff
path: root/templates/telnet
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-11-28 12:03:09 -0800
committerTom Grennan <tgrennan@vyatta.com>2007-11-28 12:03:09 -0800
commita2d883a080a5f2d95efdc84d8667ce9bfef6add3 (patch)
tree6ce1da6a0d18024601ee275f79a2904d7add3830 /templates/telnet
parent4af6a3dd7a1f842afe18aac99a19832615b67539 (diff)
downloadvyatta-op-a2d883a080a5f2d95efdc84d8667ce9bfef6add3.tar.gz
vyatta-op-a2d883a080a5f2d95efdc84d8667ce9bfef6add3.zip
use utility function to retrieve allowed hosts/addresses
Diffstat (limited to 'templates/telnet')
-rw-r--r--templates/telnet/node.tag/node.def3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/telnet/node.tag/node.def b/templates/telnet/node.tag/node.def
index 3e0bf32..5bcce24 100644
--- a/templates/telnet/node.tag/node.def
+++ b/templates/telnet/node.tag/node.def
@@ -1,6 +1,5 @@
help: telnet to <hostname|address>
-allowed: echo -n HOSTNAME A.B.C.D X:X::X:X ;
- sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null}
+allowed: vyatta-allowed-hosts
run: test -x ${vyatta_sbindir}/telnet &&
${vyatta_sbindir}/telnet $2 $3 ||
/usr/bin/telnet $2 $3