From bad26cca7842c2ff5ea983d2c1c3ddbacdf12d0a Mon Sep 17 00:00:00 2001 From: David Cutting Date: Sun, 28 Sep 2025 18:06:03 +0100 Subject: [PATCH] updated exception test to use 0.0.0.0 --- tests/DNSQueryTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DNSQueryTest.php b/tests/DNSQueryTest.php index 3d7fba4..20a4070 100644 --- a/tests/DNSQueryTest.php +++ b/tests/DNSQueryTest.php @@ -2,6 +2,7 @@ /** * Copyright (C) 2022, Fabian Bett / Bett Ingenieure GmbH + * Additions made Copyright (C) 2025 David Cutting * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -40,7 +41,7 @@ public function testInvalidDNSTypeName(): void public function testConnectionExceptionTCP(): void { - $query = new DNSQuery("127.0.0.1", 53, 60, false); + $query = new DNSQuery("0.0.0.0", 53, 60, false); $query->setConnectionException(true); $this->expectException(\PurplePixie\PhpDns\Exceptions\ConnectionFailure::class); $query->query('google.com', DNSTypes::NAME_A);