Workerman-DNS/test.php

7 lines
211 B
PHP
Raw Permalink Normal View History

2022-12-18 16:32:19 +08:00
<?php
2024-02-06 17:49:08 +08:00
use Workerman\Worker;
use Workerman\Protocols\Dns;
require_once __DIR__ . '/php-ipv6.php'; #IPv6支持
require_once __DIR__ . '/vendor/autoload.php';
echo long2ip(hexdec(substr('7541b3'.'00000000',0,8)));