aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-02-25 13:01:00 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-02-25 13:01:00 +0100
commit0f0e3207f73b55d16fa369b26e1a2b7ed96734f1 (patch)
tree04f0fc0904d40afa2a24441bf7242b51b6ddf98d /src
parent8998a34f28e9a4b5fa5ac86d2661a7edb7f8b8f0 (diff)
downloadgnunet-0f0e3207f73b55d16fa369b26e1a2b7ed96734f1.tar.gz
gnunet-0f0e3207f73b55d16fa369b26e1a2b7ed96734f1.zip
-portable fix for ips
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gns/test_gns_gns2dns_lookup.sh2
-rwxr-xr-xsrc/gns/test_gns_gns2dns_zkey_lookup.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh
index 6cb1cc43e..240e441a4 100755
--- a/src/gns/test_gns_gns2dns_lookup.sh
+++ b/src/gns/test_gns_gns2dns_lookup.sh
@@ -93,7 +93,7 @@ else
93 ret=1 93 ret=1
94fi 94fi
95 95
96if [ "$RES_IP6" = "$TEST_IP6" ] 96if [ "${RES_IP6%?}" = "${TEST_IP6%?}" ]
97then 97then
98 echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." 98 echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6."
99else 99else
diff --git a/src/gns/test_gns_gns2dns_zkey_lookup.sh b/src/gns/test_gns_gns2dns_zkey_lookup.sh
index c5a7fe4a0..a299c34b6 100755
--- a/src/gns/test_gns_gns2dns_zkey_lookup.sh
+++ b/src/gns/test_gns_gns2dns_zkey_lookup.sh
@@ -90,7 +90,7 @@ else
90 ret=1 90 ret=1
91fi 91fi
92 92
93if [ "$RES_IP6" = "$TEST_IP6" ] 93if [ "${RES_IP6%?}" = "${TEST_IP6%?}" ]
94then 94then
95 echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." 95 echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6."
96else 96else