__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpClient\Internal; use Amp\Dns; use Amp\Dns\Record; use Amp\Promise; use Amp\Success; /** * Handles local overrides for the DNS resolver. * * @author Nicolas Grekas <[email protected]> * * @internal */ class AmpResolver implements Dns\Resolver { private array $dnsMap; public function __construct(array &$dnsMap) { $this->dnsMap = &$dnsMap; } public function resolve(string $name, ?int $typeRestriction = null): Promise { $recordType = Record::A; $ip = $this->dnsMap[$name] ?? null; if (null !== $ip && str_contains($ip, ':')) { $recordType = Record::AAAA; } if (null === $ip || $recordType !== ($typeRestriction ?? $recordType)) { return Dns\resolver()->resolve($name, $typeRestriction); } return new Success([new Record($ip, $recordType, null)]); } public function query(string $name, int $type): Promise { $recordType = Record::A; $ip = $this->dnsMap[$name] ?? null; if (null !== $ip && str_contains($ip, ':')) { $recordType = Record::AAAA; } if (null === $ip || $recordType !== $type) { return Dns\resolver()->query($name, $type); } return new Success([new Record($ip, $recordType, null)]); } }
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AmpBody.php | File | 3.65 KB | 0664 |
|
| AmpClientState.php | File | 8.42 KB | 0664 |
|
| AmpListener.php | File | 5.34 KB | 0664 |
|
| AmpResolver.php | File | 1.55 KB | 0664 |
|
| Canary.php | File | 789 B | 0664 |
|
| ClientState.php | File | 547 B | 0664 |
|
| CurlClientState.php | File | 5.43 KB | 0664 |
|
| DnsCache.php | File | 695 B | 0664 |
|
| HttplugWaitLoop.php | File | 5.68 KB | 0664 |
|
| LegacyHttplugInterface.php | File | 802 B | 0664 |
|
| NativeClientState.php | File | 966 B | 0664 |
|
| PushedResponse.php | File | 694 B | 0664 |
|