diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-07-20 21:59:54 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-07-20 21:59:54 +0000 |
commit | 1c15892b52ccf109aa0f3f8ad37c7ab9bd81d220 (patch) | |
tree | a54e4c5d99bc59357fccafe05f7645e83b5fd545 /regress/usr.sbin/snmpd | |
parent | dd385324cfd12c1c8b2d939d11ae8d0b91ecd7da (diff) |
Listen on 127.0.0.1 and ::1 in the regress config since the test use localhost
which can be resolved to either of the two values.
OK bluhm@
Diffstat (limited to 'regress/usr.sbin/snmpd')
-rw-r--r-- | regress/usr.sbin/snmpd/snmpd.sh | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/regress/usr.sbin/snmpd/snmpd.sh b/regress/usr.sbin/snmpd/snmpd.sh index 28b87b6e064..97f78287206 100644 --- a/regress/usr.sbin/snmpd/snmpd.sh +++ b/regress/usr.sbin/snmpd/snmpd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: snmpd.sh,v 1.7 2018/06/30 17:37:59 rob Exp $ +# $OpenBSD: snmpd.sh,v 1.8 2018/07/20 21:59:53 claudio Exp $ #/* # * Copyright (c) Rob Pierce <rob@openbsd.org> # * @@ -63,10 +63,9 @@ echo "\nConfiguration: default community strings, trap receiver, trap handle\n" cat > ${OBJDIR}/snmpd.conf <<EOF # This is config template (1) for snmpd regression testing -listen_addr="127.0.0.1" - # Restrict daemon to listen on localhost only -listen on \$listen_addr +listen on 127.0.0.1 +listen on ::1 # Specify a number of trap receivers trap receiver localhost @@ -167,10 +166,9 @@ echo "\nConfiguration: seclevel auth\n" cat > ${OBJDIR}/snmpd.conf <<EOF # This is config template (2) for snmpd regression testing -listen_addr="127.0.0.1" - # Restrict daemon to listen on localhost only -listen on \$listen_addr +listen on 127.0.0.1 +listen on ::1 seclevel auth @@ -215,10 +213,9 @@ echo "\nConfiguration: seclevel enc\n" cat > ${OBJDIR}/snmpd.conf <<EOF # This is config template (3) for snmpd regression testing -listen_addr="127.0.0.1" - # Restrict daemon to listen on localhost only -listen on \$listen_addr +listen on 127.0.0.1 +listen on ::1 seclevel enc @@ -252,10 +249,9 @@ echo "\nConfiguration: non-default community strings, custom oids\n" cat > ${OBJDIR}/snmpd.conf <<EOF # This is config template (4) for snmpd regression testing -listen_addr="127.0.0.1" - # Restrict daemon to listen on localhost only -listen on \$listen_addr +listen on 127.0.0.1 +listen on ::1 read-only community non-default-ro |